Skip to content

Restricted editing not working as expected for a restricted word in an editable paragraph #3775

Description

@brantstoede

What happened?

When I open the attached document in SuperDoc and try to edit the paragraph that has the word CONTENT restricted for editing, SuperDoc does not permit any edits within the paragraph.

Restrict Editing of Text.docx

Steps to reproduce

  1. Open the attached .docx file in SuperDoc
  2. Place the cursor outside of CONTENT and try to type.

Restrict Editing of Text.docx

To create the restricted content in the Word document:

  1. Select: Review > Restrict Editing
  2. Editing restrictions > select “Allow only this type of editing in the document”.
    Set drop down: No changes (Read-only).
  3. Select all text except CONTENT as the editable region.
  4. Exceptions > select “Everyone”
  5. Start enforcement > select “Yes, Start Enforcing Protection”
  6. Save document.

SuperDoc version

1.41.0

Browser

Chrome

Additional context

Vanilla JS integration, useLayoutEngine: true (paginated layout)
Performed testing with the SuperDoc Toolbar demo.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage: triageNew issue. Needs initial assessment and classificationtype: bugSomething is broken or not working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions