Changes between Version 5 and Version 7 of Ticket #9478


Ignore:
Timestamp:
Nov 5, 2012, 2:23:23 PM (11 years ago)
Author:
Jakub Ś
Comment:

@req - without your code modifying the table plugin bug can only be reprodyuced in v4. With this code bug can be reproduced in v4 but also in v3 from CKE 3.6.1 rev. [6979]. I have reported it here #9560 as this is different issue.

	CKEDITOR.on( 'dialogDefinition', function( ev )
            {
                var dialogName = ev.data.name;
                var dialogDefinition = ev.data.definition;

                // Set default table width during creation.
                if(dialogName == 'table')
                {
                    var infoTab = dialogDefinition.getContents( 'info' );
                    txtWidth = infoTab.get( 'txtWidth' );
                    txtWidth['default'] = '100%';
                }

                if ( dialogName == 'tableProperties' )
                {
                    var infoTab = dialogDefinition.getContents( 'info' );

                    var tab = dialogDefinition.getContents( 'advanced' );
                    tab.remove ('advLangDir');
                    tab.remove ('advStyles');
                    tab.remove ('advCSSClasses');
                }
            });

window.x  = CKEDITOR.editor.replace('editor1', {
    removePlugins : 'button,div,filebrowser,flash,format,forms,horizontalrule,indent,justify,liststyle,pagebreak,showborders,stylescombo,templates',
        toolbar :
            [
                ['Source', 'Table']
            ],
});

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9478 – Description

    v5 v7  
    66Result: Default table width 500px is present in width field and once you click OK table gets default width.
    77
    8 Reproducible in CKEditor 4 in all browsers. Works fine in CKEditor 3.6.5
     8**Reproducible in CKEditor 4 in all browsers. Works fine in CKEditor 3.6.5**
    99
    1010
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy