Skip to content

[pull] main from ueberdosis:main - #209

Merged
pull[bot] merged 4 commits into
code:mainfrom
ueberdosis:main
Sep 23, 2026
Merged

pull[bot] merged 4 commits into
code:mainfrom
ueberdosis:main

Conversation

@pull

@pull pull Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

chillerno1 and others added 4 commits August 31, 2026 19:33
splitBlock checked canSplit on the document as it was before
deleteSelection ran, then executed the split on the document after the
deletion. When deleting the selection restructures the document (for
example a selection from the start of one block into another block, or
across an isolating node), the validated position no longer exists and
tr.split throws an uncaught TransformError: Inserted content deeper
than insertion position.

The split is now validated against the document as it will look after
the deletion, by simulating deleteSelection on a scratch transaction.
The shared transaction stays untouched until the split is known to be
possible, because it is dispatched (and shared with chained commands)
even when a command returns false. This restores the ordering used by
prosemirror-commands splitBlockAs, where deleteSelection runs before
canSplit.

Fixes #7734
fix(core): validate splitBlock against the post-deleteSelection document
fix: pin optional bubble/floating-menu deps with workspace:*
@pull pull Bot locked and limited conversation to collaborators Sep 23, 2026
@pull pull Bot added the ⤵️ pull label Sep 23, 2026
@pull
pull Bot merged commit d76e879 into code:main Sep 23, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants