Ticket #6467: 6467.patch

File 6467.patch, 757 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/maximize/plugin.js

     
    333333                                        command : 'maximize'
    334334                                } );
    335335
    336                         // Restore the command state after mode change.
     336                        // Restore the command state after mode change, unless it has been changed to disabled (#6467)
    337337                        editor.on( 'mode', function()
    338338                                {
    339                                         editor.getCommand( 'maximize' ).setState( savedState );
     339                                        var command = editor.getCommand( 'maximize' );
     340                                        command.setState( command.state == CKEDITOR.TRISTATE_DISABLED ? CKEDITOR.TRISTATE_DISABLED : savedState );
    340341                                }, null, null, 100 );
    341342                }
    342343        } );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy