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 },
17 exec : function( editor
)
19 var $form
= editor
.element
.$.form
;
29 // If there's a button named "submit" then the form.submit
30 // function is masked and can't be called in IE/FF, so we
31 // call the click() method of that button.
32 if ( $form
.submit
.click
)
39 var pluginName
= 'save';
41 // Register a plugin named "save".
42 CKEDITOR
.plugins
.add( pluginName
,
44 init : function( editor
)
46 var command
= editor
.addCommand( pluginName
, saveCmd
);
47 command
.modes
= { wysiwyg
: !!( editor
.element
.$.form
) };
49 editor
.ui
.addButton( 'Save',
51 label
: editor
.lang
.save
,