javascript - How to get the save Event in ckeditor editor? -
i got solution please use this
ckeditor.plugins.registered['save'] = { init: function (editor) { var command = editor.addcommand('save', { modes: { wysiwyg: 1, source: 1 }, exec: function (editor) { // add here custom function save button alert('you clicked save button in ckeditor toolbar!'); } }); editor.ui.addbutton('save', { label: 'save', command: 'save' }); }
}
Comments
Post a Comment