prosemirror-model
Advanced tools
Changelog
1.23.0 (2024-10-05)
The new NodeType.isInGroup
method can be used to query group membership.
Changelog
1.22.3 (2024-08-06)
Fix some corner cases in the way the DOM parser tracks active marks.
Changelog
1.22.1 (2024-07-14)
Add code to DOMSerializer
that rejects DOM output specs when they originate from attribute values, to protect against XSS attacks that use corrupt attribute input.
Changelog
1.22.0 (2024-07-14)
Attribute specs now support a validate
property that can be used to provide a validation function for the attribute, to guard against corrupt JSON input.
Changelog
1.21.3 (2024-06-26)
Fix an issue where parse rules for CSS properties that were shorthands for a number of more detailed properties weren't matching properly.
Changelog
1.21.2 (2024-06-25)
Make sure resolved positions (and thus the document and schema hanging off them) don't get kept in the cache when their document can be garbage-collected.
Changelog
1.21.1 (2024-06-03)
Improve performance and accuracy of DOMParser
style matching by using the DOM's own style
object.
Changelog
1.21.0 (2024-05-06)
The new linebreakReplacement
property on node specs makes it possible to configure a node type that setBlockType
will convert to and from line breaks when appropriate.