Skip to content

Table cell discards custom text alignment #1620

Closed
@felipegiotto

Description

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

  1. Edit "sample/index.html" and create a link to "reload" the editor content: window.editor.setData(window.editor.getData());
  2. Open the file in the browser, create a table and set the "center" text alignment in one or more cells.
  3. 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.

Metadata

Assignees

Labels

package:tabletype:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions