editorjs-undo icon indicating copy to clipboard operation
editorjs-undo copied to clipboard

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

Open adaptedbee opened this issue 1 year ago • 2 comments

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

adaptedbee avatar Sep 23 '24 13:09 adaptedbee

Same issue, but when trying to delete it from tool one by one, it works(undo/redo)

Koffer0-0 avatar Sep 26 '24 09:09 Koffer0-0

Same issue, any updates?

Matergi avatar Oct 14 '24 12:10 Matergi

I am also facing issues with Undo and Redo when selected multiple blocks it's not working. Any help would be appreciated.

infotechbrains-dev avatar Dec 27 '24 12:12 infotechbrains-dev

If you use the stable version 1.x.x, it works. I reverted to that one

Matergi avatar Dec 27 '24 13:12 Matergi