Ticket #6467: 6467.patch
File 6467.patch, 757 bytes (added by , 14 years ago) |
---|
-
_source/plugins/maximize/plugin.js
333 333 command : 'maximize' 334 334 } ); 335 335 336 // Restore the command state after mode change .336 // Restore the command state after mode change, unless it has been changed to disabled (#6467) 337 337 editor.on( 'mode', function() 338 338 { 339 editor.getCommand( 'maximize' ).setState( savedState ); 339 var command = editor.getCommand( 'maximize' ); 340 command.setState( command.state == CKEDITOR.TRISTATE_DISABLED ? CKEDITOR.TRISTATE_DISABLED : savedState ); 340 341 }, null, null, 100 ); 341 342 } 342 343 } );