prosemirror-model
Advanced tools
Changelog
1.24.1 (2024-12-10)
The parser now automatically preserves whitespace inside <pre>
or white-space: pre
elements.
Changelog
1.24.0 (2024-11-27)
Fragment.content
and Node.children
now expose a node's set of children as an array.
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.