Skip to content

Empty blocks will affect undo operations, and redo operations may not take effect. #280

@chq1024

Description

@chq1024

version:
"editorjs-drag-drop": "^1.1.14",
"editorjs-undo": "^2.0.28",
"@editorjs/editorjs": "^2.30.2",

Since there are many empty blocks in the entire editor content, when I use undo, it automatically deletes my empty blocks, and redo cannot restore them. I guess it is because preserveBlank is not enabled when using the Paragraph plugin. In addition, random undo occurs, which seems to be caused by the snapshots not being executed in order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    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