ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Column resize should provide conversion for width style on individual cell

Open mlewand opened this issue 2 years ago • 0 comments

📝 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">&nbsp;</td>
			<td style="width:291px">&nbsp;</td>
		</tr>
		<tr>
			<td style="width:94px">&nbsp;</td>
			<td style="width:291px">&nbsp;</td>
		</tr>
	</tbody>
</table>

Table in CKEditor 4

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:

  1. Let's extract cell width to CellWidthEditing plugin.
  2. 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: …

mlewand avatar Sep 07 '22 09:09 mlewand