Opened 11 years ago
Last modified 10 years ago
#11768 confirmed Bug
Merging table-cells using the cell-properties dialog is completely broken
Reported by: | Eugen | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
Reproduce by:
- http://ckeditor.com/demo#standard
- insert a 3x3 table
- select cel 1x1
- right click -> cell -> cell properties
- input 2 in "merge row cells"
- submit the dialog
Problem: Everytime you do this, no matter which values you choose for col/rowspan, the complete table-layout is broken, respectivly an extra broken column is inserted every time.
Change History (6)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
After looking at it for a while, the issue isnt too complicated. When selecting a cell and setting either row or colspanning, lets say rowspanning, then only the attribute, lets say rowspan="3" is applied to the selected sell, but not TDs are removed nor really "merged" (their contents). so its just not working the same way as visually selecting cells and then use "merge"
comment:3 Changed 11 years ago by
Summary: | row/colspanning using dialog completely brokwn → Mergin cells using the cell-properties dialog completely broken |
---|
After digging even more into the code, its clear that the case decribed before is right: https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/tabletools/dialogs/tableCell.js#L323 So only the property is set, no logic at all.
The odd thing is, that tabeltools implements a proper cell-merge method which is used when selecting cells and use the context-menu to "merge": https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/tabletools/plugin.js#L449
So we just have to delegate it, thats it.
In the end, it would be better to remove the option completely here, but due to the bug that you cannot select cells with the IE #8830 there is yet not other option to merge cells with the IE.
comment:4 Changed 11 years ago by
Summary: | Mergin cells using the cell-properties dialog completely broken → Merging table-cells using the cell-properties dialog is completely broken |
---|
comment:5 Changed 11 years ago by
i fix it in a fork but beeing honest, the amount of issues, edge cases and bugs in this code .. i would rather suggest to completly remove spanning support at all :)
comment:6 Changed 10 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.3.4 → 3.0 |
This issue is more general and we have many cases like this reported, I however like the little research made here thus I'm confirming this ticket.
also broken in the current nightly builds: http://nightly.ckeditor.com/14-04-04-06-05/standard/samples/replacebyclass.html