-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Undo after splitting elements crashes the editor. #9296
Comments
I was able to hit this pretty easily by just splitting a text node with some attributes (like bold, italic, etc) and pasting in plain text in the following order:
|
Can confirm that issue still persists in our online demos. |
I can reproduce scenario 1 without typing letters, just make two enters, then two backspace, then undo all and do one redo. I get: I can reproduce second scenario too but only if I start re-doing. I get the same error as above. |
Fixed by #17071 |
Fix (engine): Fixed incorrect marker handling in some scenarios involving undo and real-time collaboration, which earlier led to a `model-nodelist-offset-out-of-bounds` error. See #9296. Fix (engine): Fixed incorrect handling of merge changes during undo in some scenarios involving real-time collaboration, which earlier led to a `model-nodelist-offset-out-of-bounds` error. See #9296. Fix (engine): Fixed conflict resolution error, which led to editor crash in some scenarios where two users removed bigger intersecting part of the content and used undo. See #9296. Fix (engine): Fixed incorrect undo behavior leading to an editor crash when a user pressed enter key multiple times, then pressed backspace that many times, then undo all the changes. Closes #9296.
It appeared that the second scenario can be still reproduced, only I didn't follow the steps precisely. Also, I managed to narrow down this case. I created a new issue for it. #17178 |
📝 Provide detailed reproduction steps (if any)
Scenario 1:
enter
4 times.backspace
4 times.Ctrl+Z
5 times -> The action is not executed properly.Ctrl+Shift+Z
-> The editor crashes, no action possible except of typing.This is the error thrown in the 6th point:
This is the error thrown while trying to do anything else with the editor:
Scenario 2:
header
andparagraph
.header
and pressenter
2 times, thenbackspace
2 times.enter
2 times, thenbackspace
2 times.Ctrl-Z
until you get a console error and the editor crashes.This is the error thrown in the 5th point:
This is the error thrown while trying to do anything else with the editor:
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: