Ticket #3764: 3764.patch
File 3764.patch, 865 bytes (added by , 16 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 … … 131 131 if ( command.state != CKEDITOR.TRISTATE_DISABLED ) 132 132 command.refresh( editor ); 133 133 }); 134 135 // Refresh the command on setData. 136 editor.on( 'contentDom', function() { 137 if ( command.state != CKEDITOR.TRISTATE_DISABLED ) 138 command.refresh( editor ); 139 }); 134 140 } 135 141 }); 136 142 } )();