ckeditor5
ckeditor5 copied to clipboard
Column resize should provide conversion for width style on individual cell
📝 Provide a description of the improvement
Currently if you copy (to your clipboard) a table like:
<table style="width:399px">
<tbody>
<tr>
<td style="width:94px"> </td>
<td style="width:291px"> </td>
</tr>
<tr>
<td style="width:94px"> </td>
<td style="width:291px"> </td>
</tr>
</tbody>
</table>
And paste it into the CKEditor 5 column resize sample it will ignore the cell widths and look in a following way:
The reason for this is that we didn't include cell properties plugin in this sample. This plugin brings conversion and command for cell width.
The problem is that it includes also plenty of other features (like cell background, border) that are not desired in case someone enables the column resize plugin. So we need to extract cell width to an atomic plugin that will be required by both CellPropertiesEditing
and TableColumnResizeEditing
.
To sum up:
- Let's extract cell width to
CellWidthEditing
plugin. - This plugin needs to go to
requires
list of cell properties editing and column resize editing plugin.
📃 Other details
- Browser: Any
- OS: Any
- CKEditor version: …
- Installed CKEditor plugins: …