Ticket #3764: 3764_2.patch

File 3764_2.patch, 854 bytes (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/showblocks/plugin.js

     
    9999                refresh : function( editor )
    100100                {
    101101                        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' );
    103103                }
    104104        };
    105105
     
    125125                                        command : 'showblocks'
    126126                                });
    127127
    128                         // Refresh the command on mode changes.
    129                         editor.on( 'mode', function()
     128                        // Refresh the command on setData.
     129                        editor.on( 'contentDom', function()
    130130                                {
    131131                                        if ( command.state != CKEDITOR.TRISTATE_DISABLED )
    132132                                                command.refresh( editor );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy