Skip to content

contenteditable false still allows blocks to be merged. #153

@npcole

Description

@npcole

If creating a custom blot inheriting from Block and setting:

Unexpected result

node.setAttribute('contenteditable', 'false');

Quill correctly prevents the user from editing the text in that block.

However, if the block is followed immediately by a block that can be edited, and the user puts the cursor before the first character of that block and presses delete, the editable block is merged with the contenteditable === false block.

This makes the contents of both original blocks impossible to edit.

Expected result

Blocks with contenteditable set to false should not be merged with other blocks as a result of user editing actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions