Ticket #3211: 3211.patch
File 3211.patch, 1.8 KB (added by , 15 years ago) |
---|
-
_source/plugins/print/plugin.js
16 16 // Register the command. 17 17 var command = editor.addCommand( pluginName, CKEDITOR.plugins.print ); 18 18 19 // It is imposible to print the inner document in Opera.20 if ( CKEDITOR.env.opera )21 command.state = CKEDITOR.TRISTATE_DISABLED;22 23 19 // Register the toolbar button. 24 20 editor.ui.addButton( 'Print', 25 21 { … … 39 35 editor.window.$.print(); 40 36 else 41 37 editor.document.$.execCommand( "Print" ); 42 } 38 }, 39 modes : { wysiwyg : !( CKEDITOR.env.opera ) } // It is imposible to print the inner document in Opera. 43 40 }; -
_source/plugins/save/plugin.js
42 42 { 43 43 init : function( editor ) 44 44 { 45 editor.addCommand( pluginName, saveCmd ); 45 var command = editor.addCommand( pluginName, saveCmd ); 46 command.modes = { wysiwyg : !!( editor.element.$.form ) }; 47 46 48 editor.ui.addButton( 'Save', 47 49 { 48 50 label : editor.lang.save, -
_source/plugins/wsc/plugin.js
17 17 var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); 18 18 19 19 // SpellChecker doesn't work in Opera. 20 if ( CKEDITOR.env.opera ) 21 command.state = CKEDITOR.TRISTATE_DISABLED; 20 command.modes = { wysiwyg : !( CKEDITOR.env.opera ) } 22 21 23 22 editor.ui.addButton( 'SpellChecker', 24 23 {