Range-deleting multiple paragraphs leads to corrupt state #8219
Labels
resolution:duplicate
This issue is a duplicate of another issue and was merged into it.
type:bug
This issue reports a buggy (incorrect) behavior.
In CkEditor, create four paragraphs, like this:
Place the cursor before the '4'. Shift-select after the '1' to create a selection that includes paragraphs 2 and 3 and all of the paragraph-dividers. Press backslash. The result should be:
but instead it's
Now press Cmd+Z to undo what you just did. The result should have all four paragraphs, but instead it's
(paragraph 3 is missing)
📃 Other details
Comments
As you can imagine, this is pretty bad. This is a pretty trivial way to end up in a state in which undo doesn't work, the devtools crash, and all kinds of weird stuff starts happening. So my guess is that fixing this is pretty high priority.
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: