prosemirror-commands
Advanced tools
Changelog
1.6.2 (2024-10-24)
Make splitBlock
smart enough to split blocks when the cursor is inside a nested inline node.
Changelog
1.6.1 (2024-10-11)
joinBackward
will, when moving a node into a block, no longer join that block with the block after when the two have compatible content but aren't of the same type.
Fix an issue in splitBlock
that caused it to return true without doing anything when the schema makes splitting at the cursor impossible.
Support implicit conversion between hard break nodes and newlines in the joinForward
and joinBackward
commands.
Changelog
1.6.0 (2024-07-26)
Fix an issue where joinBackward
couldn't lift the block with the cursor when the block before it was isolating.
toggleMark
now takes an option that controls its behavior when only part of the selection has the mark already.
The function given to splitBlockAs
now has access to the split position via a third parameter.
toggleMark
now takes an enterInlineAtoms
option that controls whether it descends into atom nodes.
Changelog
1.5.2 (2023-05-17)
Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Changelog
1.5.1 (2023-03-01)
Fix joinTextblockBackward
not applying when the textblock before was wrapped in another node.
Changelog
1.5.0 (2022-12-05)
The new splitBlockAs
command-builder allows you to pass in custom logic to determine the type of block that should be split off.
Changelog
1.4.0 (2022-12-01)
Make setBlockType
act on all selection ranges in selections that have them.
The new joinTextblockForward
and joinTextblockBackward
commands provide a more primitive command for delete/backspace behavior when you don't want the extra strategies implemented by joinForward
/joinBackward
.
Changelog
1.3.1 (2022-09-08)
Make sure toggleMark
doesn't add marks to top nodes with non-inline content.