ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

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

Open mabryl opened this issue 1 year ago • 2 comments

📝 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

  • Browser: cross-browser
  • OS: cross-OS
  • First affected CKEditor version: N/A
  • Installed CKEditor plugins: Table, RestrictedEditingMode

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

mabryl avatar May 17 '24 13:05 mabryl

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

Witoso avatar May 17 '24 13:05 Witoso

@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.

mabryl avatar May 17 '24 14:05 mabryl