1. Should it be possible to merge down cells from thead to tbody? 2. If so, should the merged cell be in thead or in tbody?
If they are really part of the header then it makes no sense to merge them with the data cells. They are part of different elements so they shouldn't be merged.
4. Should the merging of a th-cel with a td-cell result in a th-cell (it does at the moment) or a td-cell?
The current behavior is based on the top-left cell, there's no need to add extra rules (and code that must be written and tested). If the user doesn't like the output he can change the type of the merged cell.
If they are really part of the header then it makes no sense to merge them with the data cells. They are part of different elements so they shouldn't be merged.
I was a bit in doubt on this one. It should be possible to extend the thead. On the other hand: it's still possible to insert an extra row in thead and copy/paste data from tbody into it if needed.
I just added a new ticket about the merging of cells from one table section to another, see http://dev.fckeditor.net/ticket/2777. A little patch is already submitted.
I'm not sure if it should be made possible to merge cells between tbodies (there could be more than one). At the moment the patch does not allow that kind of merging.
We are under beta stabilization now, so I'm afraid those tickets will be retarget to a future release. Only critical tickets should be targeted to the 2.6.4 at this point.
Well, but can they can be reviewed? (so i can carry on with other issues in tablehandler.js) And to which version should i target these tickets and patches?
Now right click in cell b and delete that column. You will see that the colspan of cell c is not lowered (or, in this case, removed).
To my opinion the best thing to handle those situations is to lower the colspan in cell c. It could be achieved bij making use of a tablemap when deleting a column.
The same issue appereas when deleting rows with rowspanning cells in it.
It would be definitely better to have those code simplifications and fixes when doing those operations. The current behavior doesn't bring that much problems, but it's always good if we can have a cleaner output.
Looking at the tablehandler.js code cloning of the row seems to be the problem. Or maybe its something similar to the patch I submitted to this ticket http://dev.fckeditor.net/ticket/2486.
Added a ticket and a patch for those cases were after deleting a row the rowspan of merged cells is not corrected. See http://dev.fckeditor.net/ticket/2813
When merging down rowspanned cells the rowspan was not corrected and emty rows appeared. Just added a ticket and a patch, see http://dev.fckeditor.net/ticket/2859.
As far as I can see all major issues concerning tables are solved!
I have a question. In Gecko one can only merge cells by selecting them all. In other browsers merging can only be achieved by putting the cursor into one cell and do 'merge right' or 'merge down'.
Wouldn't it be better to enable 'merge right' and 'merge down' in Gecko too? In that case 'merge right' and 'merge down' are enabled in all browsers and in Gecko 'merge' is enabled too.
If they are really part of the header then it makes no sense to merge them with the data cells. They are part of different elements so they shouldn't be merged.
The current behavior is based on the top-left cell, there's no need to add extra rules (and code that must be written and tested). If the user doesn't like the output he can change the type of the merged cell.
I was a bit in doubt on this one. It should be possible to extend the thead.
On the other hand: it's still possible to insert an extra row in thead and copy/paste data from tbody into it if needed.
A little patch is already submitted.
I'm not sure if it should be made possible to merge cells between tbodies (there could be more than one). At the moment the patch does not allow that kind of merging.
We are under beta stabilization now, so I'm afraid those tickets will be retarget to a future release. Only critical tickets should be targeted to the 2.6.4 at this point.
Frederico Knabben
Project Lead for CKEditor
CEO at CKSource
Well, but can they can be reviewed? (so i can carry on with other issues in tablehandler.js)
And to which version should i target these tickets and patches?
Regards,
Koen Willems
Well ... I think it's unwanted.
Say we have a 3 * 2 table like this:
Now right click in cell b and delete that column.
You will see that the colspan of cell c is not lowered (or, in this case, removed).
To my opinion the best thing to handle those situations is to lower the colspan in cell c.
It could be achieved bij making use of a tablemap when deleting a column.
The same issue appereas when deleting rows with rowspanning cells in it.
Or should it be left the way it's working now?
Frederico Knabben
Project Lead for CKEditor
CEO at CKSource
Frederico Knabben
Project Lead for CKEditor
CEO at CKSource
I'm working now on the same issue with deleting rows and rowspans.
Splitting a cell with rowspan > 1 breaks table layout.
1. Insert the following table on the demo page.
2. Split cell b1 horizontally and the resulting table is
The table should actually be
Looking at the tablehandler.js code cloning of the row seems to be the problem. Or maybe its something similar to the patch I submitted to this ticket http://dev.fckeditor.net/ticket/2486.
It's more an issue what the user expects.
I can live with it, because now the tablehandler continues the normal way of presenting cells (whereas I consider merged cells to be an exception).
See http://dev.fckeditor.net/ticket/2813
It's in fact the equivalent of http://dev.fckeditor.net/ticket/2800, which was about columns.
I hope you like it.
Next issue is about merging down cells; i'll take a look at it tomorrow, ok?
Just added a ticket and a patch, see http://dev.fckeditor.net/ticket/2859.
As far as I can see all major issues concerning tables are solved!
In Gecko one can only merge cells by selecting them all.
In other browsers merging can only be achieved by putting the cursor into one cell and do 'merge right' or 'merge down'.
Wouldn't it be better to enable 'merge right' and 'merge down' in Gecko too?
In that case 'merge right' and 'merge down' are enabled in all browsers and in Gecko 'merge' is enabled too.
See http://dev.fckeditor.net/ticket/2868