Ticket #6640: 6640_3.patch
File 6640_3.patch, 1.8 KB (added by , 13 years ago) |
---|
-
_source/plugins/floatpanel/plugin.js
60 60 children : [], 61 61 dir : editor.lang.dir 62 62 }; 63 64 editor.on( 'mode', function(){ this.hide(); }, this ); 63 65 }, 64 66 65 67 proto : -
_source/plugins/menubutton/plugin.js
29 29 if ( _.state === CKEDITOR.TRISTATE_DISABLED ) 30 30 return; 31 31 32 _.previousState = _.state;33 34 32 // Check if we already have a menu for it, otherwise just create it. 35 33 var menu = _.menu; 36 34 if ( !menu ) … … 40 38 41 39 menu.onHide = CKEDITOR.tools.bind( function() 42 40 { 43 this.setState( _.previousState);41 this.setState( this.modes && this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); 44 42 }, 45 43 this ); 46 44 47 45 // Initialize the menu items at this point. 48 46 if ( this.onMenu ) 49 {50 47 menu.addListener( this.onMenu ); 51 }52 48 } 53 49 54 50 if ( _.on ) -
_source/plugins/richcombo/plugin.js
244 244 if ( me.className ) 245 245 this.element.getFirst().removeClass( me.className + '_panel' ); 246 246 247 me.setState( CKEDITOR.TRISTATE_OFF);247 me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ); 248 248 249 249 me._.on = 0; 250 250