Ticket #4507: 4507.patch
File 4507.patch, 909 bytes (added by , 14 years ago) |
---|
-
_source/plugins/save/plugin.js
16 16 exec : function( editor ) 17 17 { 18 18 var $form = editor.element.$.form; 19 var config = editor.config; 20 21 if (typeof config.saveFunction == 'function') { 22 config.saveFunction(editor.getData()); 23 return; 24 } 19 25 20 26 if ( $form ) 21 27 { … … 43 49 init : function( editor ) 44 50 { 45 51 var command = editor.addCommand( pluginName, saveCmd ); 46 command.modes = { wysiwyg : !!( editor.element.$.form ) }; 47 52 var config = editor.config; 53 54 command.modes = { wysiwyg : (!!( editor.element.$.form ) || (typeof config.saveFunction == 'function')) }; 55 48 56 editor.ui.addButton( 'Save', 49 57 { 50 58 label : editor.lang.save,