You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
CKEditor 5, Decoupled build, v12.0.0
📋 Steps to reproduce
Edit "sample/index.html" and create a link to "reload" the editor content: window.editor.setData(window.editor.getData());
Open the file in the browser, create a table and set the "center" text alignment in one or more cells.
Click the link
✅ Expected result
The editor content (including the centered text alignment) should be retained.
❎ Actual result
The text changes to left (default) alignment.
📃 Other details that might be useful
The editor uses the HTML <td style="text-align:center;">Ce</td> to denote a table cell with centered text. But, it fails to parse this HTML, and discards the text align information.
The text was updated successfully, but these errors were encountered:
@jodator, the problem is that the editor itself is styling the table cells, when I create a table and change the alignment, as I'm setting the same editor document, without changing anything.
Maybe the Table plugin should create this <p> element, with the style attribute?
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
CKEditor 5, Decoupled build, v12.0.0
📋 Steps to reproduce
window.editor.setData(window.editor.getData());
✅ Expected result
The editor content (including the centered text alignment) should be retained.
❎ Actual result
The text changes to left (default) alignment.
📃 Other details that might be useful
The editor uses the HTML
<td style="text-align:center;">Ce</td>
to denote a table cell with centered text. But, it fails to parse this HTML, and discards the text align information.The text was updated successfully, but these errors were encountered: