Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mabryl opened this issue May 17, 2024 · 2 comments
Labels
package:restricted-editing package:table squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@mabryl
Copy link
Contributor

mabryl commented May 17, 2024

📝 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:

Screen.Recording.2024-05-17.at.15.12.07.mov

📃 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 mabryl added type:bug This issue reports a buggy (incorrect) behavior. package:table support:2 An issue reported by a commercially licensed client. package:restricted-editing squad:core Issue to be handled by the Core team. labels May 17, 2024
@Witoso
Copy link
Member

Witoso commented May 17, 2024

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

@mabryl
Copy link
Contributor Author

mabryl commented May 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:restricted-editing package:table squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

2 participants