Opened 12 years ago
Closed 12 years ago
#9478 closed Bug (fixed)
CKE 4.x - Undefined table width gets reset to default
Reported by: | Joel | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Dialogs | Version: | 4.0 |
Keywords: | Cc: |
Description (last modified by )
To reproduce:
- Clear editor contents with CRTL+A Backspace
- Insert default table
- Open table properties dialog, clear width value and click OK
- Open table properties one more time.
Result: Default table width 500px is present in width field and once you click OK table gets default width.
Reproducible in CKEditor 4 in all browsers. Works fine in CKEditor 3.6.5
The comment:7 is about separate issue reproducible in both CKE 3.x and 4.x. It has its own ticket #9560.
Change History (9)
comment:2 Changed 12 years ago by
comment:4 Changed 12 years ago by
Component: | General → UI : Dialogs |
---|---|
Description: | modified (diff) |
Status: | new → confirmed |
Summary: | Undefined table width gets reset to default if changing other settings. → Undefined table width gets reset to default |
Version: | 3.6.4 → 4.0 (GitHub - master) |
comment:5 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:6 Changed 12 years ago by
This bug depends quite a bit on the configuration. I was able to reproduce in 3.6.2 in jsfiddle, see http://jsfiddle.net/gz9b4/1/
If you remove the following conditional and everything in it, the bug does not appear. If you keep it, the bug appears.
if ( dialogName == 'tableProperties' ){...}
comment:7 Changed 12 years ago by
Description: | modified (diff) |
---|
@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'] ], });
comment:8 Changed 12 years ago by
Thanks for creating this as separate, i didn't understand it needed one :)
comment:9 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Summary: | Undefined table width gets reset to default → CKE 4.x - Undefined table width gets reset to default |
comment:10 Changed 12 years ago by
This particular TC can only be reproduced in v4 but let's say it is connected with this issue #9560 which can be reproduced in both v3 and v4.
Apparently this requires a specific configuration to work. I could not reproduce in demo, but I was able to reproduce (IE9 & Chrome) in the V4 demo at http://nightly-v4.ckeditor.com/3694/samples/fullpage.html
Another way on the same page