Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adaptedbee opened this issue Sep 23, 2024 · 4 comments · May be fixed by #286
Open

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

adaptedbee opened this issue Sep 23, 2024 · 4 comments · May be fixed by #286
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking

Comments

@adaptedbee
Copy link

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 adaptedbee added ⛑ Needs triage Someone is checking 🐞 Bug Something isn't working labels Sep 23, 2024
@Koffer0-0
Copy link

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

@Matergi
Copy link

Matergi commented Oct 14, 2024

Same issue, any updates?

@infotechbrains-dev
Copy link

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

@Matergi
Copy link

Matergi commented Dec 27, 2024

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

NansPellicari added a commit to NansPellicari/editorjs-undo that referenced this issue Feb 13, 2025
NansPellicari added a commit to NansPellicari/editorjs-undo that referenced this issue Feb 14, 2025
NansPellicari added a commit to NansPellicari/editorjs-undo that referenced this issue Feb 14, 2025
NansPellicari added a commit to NansPellicari/editorjs-undo that referenced this issue Feb 14, 2025
NansPellicari added a commit to NansPellicari/editorjs-undo that referenced this issue Feb 28, 2025
@L-Zuluaga L-Zuluaga linked a pull request Feb 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants