ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.36k stars 3.68k forks source link

Empty editable regions created with Restricted Editing inside of a table get dropped when reloading the editor's data #16376

Open mabryl opened 4 months ago

mabryl commented 4 months ago

📝 Provide detailed reproduction steps (if any)

  1. In a table, create an editable region that will contain just empty spaces
  2. Execute editor.setData( editor.getData() )

✔️ Expected result

The previously created editable region should be retained in the table after reloading the data.

❌ Actual result

The empty editable region will get dropped. Notice that it doesn't affect paragraphs with empty editable regions or regions inside of the table that have some content:

https://github.com/ckeditor/ckeditor5/assets/72079603/99a1750c-3c12-417c-8553-b2b478712b1f

📃 Other details


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Witoso commented 4 months ago

@mabryl do you know if this is a regression? We changed a few things in recent versions in the restricted editing.

mabryl commented 4 months ago

@Witoso looks like it's not a regression. I just retested this and I went back all the way to v35.2.1 and the issue is still reproducible in that version.