I was following the steps written in this topic:http://stackoverflow.com/questions/1956967/ckeditor-ajax-save I tried to fire a custom 'saved.ckeditor' event if anybody press the AjaxSave button. But I did not succeeded.
ckeditor/plugins/ajaxsave/plugin.js:
(function() { var saveCmd = { modes : { wysiwyg:1, source:1 }, exec : function( editor ) { editor.fire('saved.ckeditor'); $(editor).trigger('saved.ckeditor', editor.getData()); } } var pluginName = 'ajaxsave'; CKEDITOR.plugins.add( pluginName, { init : function( editor ) { var command = editor.addCommand( pluginName, saveCmd ); command.modes = { wysiwyg : !!( editor.element.$.form ) }; editor.ui.addButton( 'AjaxSave', { label : editor.lang.save, command : pluginName, className : 'cke_button_save' }); } }); })();
Re: fire custom save event when Save button pressed