Ticket #3764: 3764_2.patch
File 3764_2.patch, 854 bytes (added by , 15 years ago) |
---|
-
_source/plugins/showblocks/plugin.js
99 99 refresh : function( editor ) 100 100 { 101 101 var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass'; 102 editor.document.getBody()[ funcName]( 'cke_show_blocks' );102 editor.document.getBody()[ funcName ]( 'cke_show_blocks' ); 103 103 } 104 104 }; 105 105 … … 125 125 command : 'showblocks' 126 126 }); 127 127 128 // Refresh the command on mode changes.129 editor.on( ' mode', function()128 // Refresh the command on setData. 129 editor.on( 'contentDom', function() 130 130 { 131 131 if ( command.state != CKEDITOR.TRISTATE_DISABLED ) 132 132 command.refresh( editor );