Skip to content

setData with RestrictedEditingException produces incorrect blanks #16721

Closed
@Geri1590

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    domain:integration-dxThis issue reports a problem with the developer experience when integrating CKEditor into a system.package:restricted-editingsupport:2An issue reported by a commercially licensed client.type:bugThis issue reports a buggy (incorrect) behavior.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions