Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-commands

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-commands - npm Package Versions

23
6

1.6.2

Diff

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.

marijn
published 1.3.0 •

Changelog

Source

1.3.0 (2022-05-30)

New features

Include TypeScript type declarations.

marijn
published 1.3.0-beta.1 •

23
6
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc