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

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

Open
chq1024 opened this issue Aug 13, 2024 · 1 comment
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking

Comments

@chq1024
Copy link

chq1024 commented Aug 13, 2024

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?

@chq1024 chq1024 added ⛑ Needs triage Someone is checking 🐞 Bug Something isn't working labels Aug 13, 2024
@Koffer0-0
Copy link

I hope this help

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

No branches or pull requests

2 participants