Allow show information messages inside editor:
const editor = Jodit.make('#editor');editor.message.error('Hellow world!');editor.message.info('Hellow world!');editor.message.success('Hellow world!', 3000); // Show 3 secondseditor.message.message('Hellow world!', 'error'); // or 'danger'editor.message.message('Hellow world!', 'info'); // or 'primary'editor.message.message('Hellow world!', 'secondary');editor.message.message('Hellow world!', 'success', 3000); // Show 3 seconds Copy
const editor = Jodit.make('#editor');editor.message.error('Hellow world!');editor.message.info('Hellow world!');editor.message.success('Hellow world!', 3000); // Show 3 secondseditor.message.message('Hellow world!', 'error'); // or 'danger'editor.message.message('Hellow world!', 'info'); // or 'primary'editor.message.message('Hellow world!', 'secondary');editor.message.message('Hellow world!', 'success', 3000); // Show 3 seconds
If you want to override the appearance of popup messages, you can use the following css template:
.jodit-ui-message_variant_secondary { --em-alert-color: #41464b; --em-alert-bg: #e2e3e5; --em-alert-border-color: #d3d6d8;} Copy
.jodit-ui-message_variant_secondary { --em-alert-color: #41464b; --em-alert-bg: #e2e3e5; --em-alert-border-color: #d3d6d8;}
Where variant_secondary can be replaced with:
variant_secondary
variant_error
type_danger
variant_info
type_primary
variant_success
If you like Jodit - try Jodit PRO
Show info messages
Allow show information messages inside editor:
If you want to override the appearance of popup messages, you can use the following css template:
Where
variant_secondary
can be replaced with:variant_error
ortype_danger
variant_info
ortype_primary
variant_success