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

setData with RestrictedEditingException produces incorrect blanks #16721

Open
Geri1590 opened this issue Jul 12, 2024 · 1 comment
Open

setData with RestrictedEditingException produces incorrect blanks #16721

Geri1590 opened this issue Jul 12, 2024 · 1 comment
Labels
domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. package:restricted-editing support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Geri1590
Copy link

📝 Provide detailed reproduction steps (if any)

The issue is detailed in #9646.
When calling editor.setData() on an editor with RestrictedEditingException plugin, produces incorrect text (blank blocks).

  1. Go to https://ckeditor.com/docs/ckeditor5/latest/features/restricted-editing.html
  2. Switch to restricted mode
  3. Do editor.setData(editor.getData()) few times

✔️ Expected result

New data visualized correctly.

❌ Actual result

New data is visualized with extra <span class="restricted-editing-exception"></span>.

❓ Possible solution

Described in #9646.


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

@Geri1590 Geri1590 added the type:bug This issue reports a buggy (incorrect) behavior. label Jul 12, 2024
@bramdebouvere
Copy link

Is there any workaround for this?

@Witoso Witoso added support:2 An issue reported by a commercially licensed client. package:restricted-editing domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. package:restricted-editing 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

3 participants