Ticket #6812: 6812_2.patch
File 6812_2.patch, 1.4 KB (added by , 14 years ago) |
---|
-
_source/plugins/button/plugin.js
98 98 99 99 instance.index = index = CKEDITOR.ui.button._.instances.push( instance ) - 1; 100 100 101 // Indicate a mode sensitive button. 101 102 if ( this.modes ) 102 103 { 104 var modeStates = {}; 105 editor.on( 'beforeModeUnload', function() 106 { 107 modeStates[ editor.mode ] = this._.state; 108 }, this ); 109 103 110 editor.on( 'mode', function() 104 111 { 105 112 this.setState( this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); 113 var mode = editor.mode; 114 // Restore saved button state. 115 this.setState( this.modes[ mode ] ? 116 modeStates[ mode ] != undefined ? modeStates[ mode ] : 117 CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); 106 118 }, this); 107 119 } 108 120 else if ( command ) -
_source/plugins/scayt/plugin.js
595 595 label : lang.title, 596 596 title : CKEDITOR.env.opera ? lang.opera_title : lang.title, 597 597 className : 'cke_button_scayt', 598 modes : { wysiwyg : 1 }, 598 599 onRender: function() 599 600 { 600 601 command.on( 'state', function()