editorjs-undo
editorjs-undo copied to clipboard
When removing multiple blocks, Ctrl+Z doesn't return all of them
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
- Select few paragraphs with mouse
- Press 'Backspace' to delete them
- 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
Same issue, but when trying to delete it from tool one by one, it works(undo/redo)
Same issue, any updates?
I am also facing issues with Undo and Redo when selected multiple blocks it's not working. Any help would be appreciated.
If you use the stable version 1.x.x, it works. I reverted to that one