Ticket #3437: 3437_2.patch

File 3437_2.patch, 1.2 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/maximize/plugin.js

     
    249249                                        command : 'maximize'
    250250                                } );
    251251
     252                        // Restore the command state after mode change.
    252253                        editor.on( 'mode', function()
    253254                                {
    254255                                        editor.getCommand( 'maximize' ).setState( savedState );
    255                                 } );
     256                                }, null, null, 100 );
    256257                }
    257258        } );
    258259})();
  • _source/plugins/showblocks/plugin.js

     
    121121                                        command : 'showblocks'
    122122                                } );
    123123
    124                         editor.on( 'contentDom', function()
     124                        // Restore the command state after mode change.
     125                        editor.on( 'mode', function()
    125126                        {
    126                                 // Restore show blocks state after mode switches.
    127                                 command.setState( CKEDITOR.TRISTATE_OFF );
    128                                 if ( this._.showBlocks )
     127                                if ( editor.mode === 'wysiwyg' && this._.showBlocks )
    129128                                        command.exec();
    130                         } );
     129                        }, null, null, 100 );
    131130                }
    132131        });
    133132} )();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy