Ticket #3437: 3437_2.patch
File 3437_2.patch, 1.2 KB (added by , 15 years ago) |
---|
-
_source/plugins/maximize/plugin.js
249 249 command : 'maximize' 250 250 } ); 251 251 252 // Restore the command state after mode change. 252 253 editor.on( 'mode', function() 253 254 { 254 255 editor.getCommand( 'maximize' ).setState( savedState ); 255 } );256 }, null, null, 100 ); 256 257 } 257 258 } ); 258 259 })(); -
_source/plugins/showblocks/plugin.js
121 121 command : 'showblocks' 122 122 } ); 123 123 124 editor.on( 'contentDom', function() 124 // Restore the command state after mode change. 125 editor.on( 'mode', function() 125 126 { 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 ) 129 128 command.exec(); 130 } );129 }, null, null, 100 ); 131 130 } 132 131 }); 133 132 } )();