Opened 15 years ago
Last modified 15 years ago
#5985 closed Bug
tables: adding column before a cell that's been merged to the right will create another tdspan=2 cell in new column. — at Initial Version
Reported by: | Jude Allred | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
repro steps:
- go to http://ckeditor.com/demo using firefox.
- click inside the "Italian" cell of the table
- Merge that cell to the right. We now have a "ItalianCappuccetto Rosso" cell.
- Right click in that cell and insert a column 'before'
- [bug] the new colomn on the left has a tdspan of 2, and the table is borked:
<table align="right" border="1" cellpadding="1" cellspacing="1" style="width: 200px;"> <caption> <strong>International Names</strong></caption> <tbody> <tr> <td> </td> <td> Chinese</td> <td> <i>小紅帽</i></td> </tr> <tr> <td colspan="2"> </td> <td colspan="2"> Italian<i>Cappuccetto Rosso</i></td> </tr> <tr> <td> </td> <td> Spanish</td> <td> <i>Caperucita Roja</i></td> </tr> </tbody> </table>
The expected output is:
<table align="right" border="1" cellpadding="1" cellspacing="1" style="width: 200px;"> <caption> <strong>International Names</strong></caption> <tbody> <tr> <td> </td> <td> Chinese</td> <td> <i>小紅帽</i></td> </tr> <tr> <td> </td> <td colspan="2"> Italian<i>Cappuccetto Rosso</i></td> </tr> <tr> <td> </td> <td> Spanish</td> <td> <i>Caperucita Roja</i></td> </tr> </tbody> </table>
Or, in more-english-than-not, the cell created is improperly receiving the attribute 'colspan="2"'. Removing that attribute restores order to the universe.