2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
14 modes : { wysiwyg:1, source:1 },
16 exec : function( editor )
18 var $form = editor.element.$.form;
28 // If there's a button named "submit" then the form.submit
29 // function is masked and can't be called in IE/FF, so we
30 // call the click() method of that button.
31 if ( $form.submit.click )
38 var pluginName = 'save';
40 // Register a plugin named "save".
41 CKEDITOR.plugins.add( pluginName,
43 init : function( editor )
45 var command = editor.addCommand( pluginName, saveCmd );
46 command.modes = { wysiwyg : !!( editor.element.$.form ) };
48 editor.ui.addButton( 'Save',
50 label : editor.lang.save,