🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

prosemirror-commands

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-commands - npm Package Versions

23456

1.7.1

Diff
marijn
published 1.7.1 •

Changelog

Source

1.7.1 (2025-04-13)

Bug fixes

Fix a regression in splitBlock that would cause it to crash, rather than return false, when no split is possible.

marijn
published 1.7.0 •

Changelog

Source

1.7.0 (2025-02-20)

New features

toggleMark now accepts an includeWhitespace option that controls whether it affects leading/trailing space.

marijn
published 1.6.2 •

Changelog

Source

1.6.2 (2024-10-24)

Bug fixes

Make splitBlock smart enough to split blocks when the cursor is inside a nested inline node.

marijn
published 1.6.1 •

Changelog

Source

1.6.1 (2024-10-11)

Bug fixes

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.

marijn
published 1.6.0 •

Changelog

Source

1.6.0 (2024-07-26)

Bug fixes

Fix an issue where joinBackward couldn't lift the block with the cursor when the block before it was isolating.

New features

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.

marijn
published 1.5.2 •

Changelog

Source

1.5.2 (2023-05-17)

Bug fixes

Include CommonJS type declarations in the package to please new TypeScript resolution settings.

marijn
published 1.5.1 •

Changelog

Source

1.5.1 (2023-03-01)

Bug fixes

Fix joinTextblockBackward not applying when the textblock before was wrapped in another node.

marijn
published 1.5.0 •

Changelog

Source

1.5.0 (2022-12-05)

New features

The new splitBlockAs command-builder allows you to pass in custom logic to determine the type of block that should be split off.

marijn
published 1.4.0 •

Changelog

Source

1.4.0 (2022-12-01)

Bug fixes

Make setBlockType act on all selection ranges in selections that have them.

New features

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.

marijn
published 1.3.1 •

Changelog

Source

1.3.1 (2022-09-08)

Bug fixes

Make sure toggleMark doesn't add marks to top nodes with non-inline content.