Changes between Version 1 and Version 2 of Ticket #9478, comment 8


Ignore:
Timestamp:
Nov 6, 2012, 7:29:16 AM (12 years ago)
Author:
Joel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9478, comment 8

    v1 v2  
    11Thanks for creating this as separate, i didn't understand it needed one :)
    2 
    3 I think I managed to narrow down even further. The line that actually causes the bug to appear is {{{tab.remove('advStyles')}}}. I updated a jsfiddle to v4 for this: http://jsfiddle.net/gz9b4/4/ - the code for replicating in 3.6.2 at least is as follows
    4 {{{
    5  CKEDITOR.on(
    6     'dialogDefinition',
    7     function( ev )
    8     {
    9         var dialogName = ev.data.name;
    10         var dialogDefinition = ev.data.definition;
    11 
    12         if ( dialogName == 'tableProperties' )
    13         {
    14             var tab = dialogDefinition.getContents( 'advanced' );
    15             tab.remove ('advStyles'); // This causes the bug to appear
    16             //tab.remove ('advLangDir'); // this does not
    17             //tab.remove ('advCSSClasses'); // nor this
    18         }
    19     }
    20 );
    21 window.x  = CKEDITOR.editor.replace('my-editor');
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy