Skip to content

When removing multiple blocks, Ctrl+Z doesn't return all of them #285

@adaptedbee

Description

@adaptedbee

Description

When removing multiple blocks, Ctrl+Z doesn't return all of them

Environment

  • Editor.js version: 2.29.1
  • editorjs-undo version: 2.0.28
  • Device, Browser, OS: Desktop, Windows 10, Google Chrome 128.0.6613.139

Current behavior

  1. Select few paragraphs with mouse
  2. Press 'Backspace' to delete them
  3. Press 'Ctrl+Z'

-- Paragraphs doesn't return. (Sometimes, only first of them returns)
-- Console shows warning like 'There is no block at index 1684'

Expected behavior

Paragraphs return

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions