Opened 11 years ago
Closed 11 years ago
#11438 closed Bug (fixed)
Splitting table cells causes table content to move.
Reported by: | Lynne Kues | Owned by: | Jakub Ś |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.3.3 |
Component: | Core : Tables | Version: | 3.1 |
Keywords: | IBM | Cc: | satya_minnekanti@… |
Description
- Create a table 2 rows, by 3 columns.
- Specify first row data as "a", "b", "c".
- Specify second row data as "1", "2", "3".
- Split vertically first cell on first row. Enter "a1" as data for new cell.
- Split vertically last cell on first row.
Notice that the data you entered in step 4 moves.
See this behavior in 3.6, but also current 4.x.
Change History (16)
comment:1 Changed 11 years ago by
Cc: | satya_minnekanti@… added |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Status: | new → confirmed |
---|
Tentatively setting it to the next milestone.
comment:4 Changed 11 years ago by
Component: | General → Core : Tables |
---|---|
Version: | 3.6.4 → 3.1 |
Just like #11439 this issue can be reproduced from CKEditor 3.1 in all browsers.
comment:5 Changed 11 years ago by
Milestone: | → CKEditor 4.3.3 |
---|
comment:6 Changed 11 years ago by
Owner: | set to Jakub Ś |
---|---|
Status: | confirmed → assigned |
comment:7 Changed 11 years ago by
Status: | assigned → review |
---|
I have created t/11438.
Seems that simple change in append method has done the trick but please test this.
comment:8 Changed 11 years ago by
Status: | review → review_failed |
---|
The patch seems to work, although few things are missing or have to be fixed:
- Code style issue - missing space.
false
doesn't have to be passed - it's a default value ofappend()
's second arg.- Commit message shows some problem with encoding (git:2992549).
- Commit message does not explain how the issue has been fixed by this commit. It tells only that it was fixed, what's not enough.
- There's no test for this change - it should be added to
tabletools/tabletools.html
.
comment:9 Changed 11 years ago by
Status: | review_failed → review |
---|
Corrected: https://github.com/cksource/ckeditor-dev/tree/t/11438
- Fixed
- Fixed
- I believe I have fixed that by changing some options in Git Gui but I will have to wait to check this untill next commit with non latin character (https://github.com/msysgit/msysgit/wiki/Git-for-Windows-Unicode-Support).
- Method
append(true)
usesinsertBefore
so it doesn’t work in this particular case. If you were inserting cell 1.3 and then 1.1 error would not happen.
In case ofappend()
method, nativeappendChild(node)
is used which seems to handle these things by default as it inserts TD into correct position. - Tests created under branch t/11438 under commit git:bb29ba6
comment:11 Changed 11 years ago by
Status: | review → review_failed |
---|
I rebased and force-pushed both branches. Also renamed the commit in dev branch.
Still:
- Duplicated test in
tabletools.html L161-173
:// (#6111) 'test merge one cell': function() { this.doTest( 'merge-cell-right', 'cellMergeRight' ); this.doTest( 'merge-cell-down', 'cellMergeDown' ); }, // (#6111) 'test merge one cell': function() { this.doTest( 'merge-cell-right', 'cellMergeRight' ); this.doTest( 'merge-cell-down', 'cellMergeDown' ); },
- The file should get
'use strict';
to prevent such errors. - White space characters (tabs) in L149 and L155.
comment:12 Changed 11 years ago by
Status: | review_failed → review |
---|
- Fixed.
- Added
- Fixed
I have pushed new commit git:663abc6 for branch t/11438.
comment:13 Changed 11 years ago by
Status: | review → review_failed |
---|
White space characters (tabs) in lines 13, 152, 158, 163 and 222 (tabletools.html). I advise you to configure your text editor to either remove or display trailing white-spaces.
comment:14 Changed 11 years ago by
Status: | review_failed → review |
---|
Pushed git:5e76c93.
If there are more white spaces I will have to change editor.
comment:15 Changed 11 years ago by
Status: | review → review_passed |
---|
comment:16 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed on master with commit git:c878409 on dev and 8ec7c03 commit on test.
This is a customer reported issue. Can you please prioritize it for the 4.3.3 release?