prosemirror-model
Advanced tools
Changelog
1.4.0 (2018-03-22)
ContentMatch.defaultType
, a way to get a matching node type at a content match position, is now public.
Changelog
1.2.2 (2018-03-15)
Throw errors, rather than constructing invalid objects, when deserializing from invalid JSON data.
Changelog
1.2.1 (2018-03-15)
Content expressions with text nodes in required positions now raise the appropriate error about being unable to generate such nodes.
Changelog
1.2.0 (2018-03-14)
rangeHasMark
now always returns false for empty ranges.
The DOM renderer no longer needlessly splits mark nodes when starting a non-rendered mark.
DOMSerializer
now allows DOM specs for marks to have holes in them, to specify the precise position where their content should be rendered.
The base position parameter to Node.nodesBetween
and Fragment.nodesBetween
is now part of the public interface.
Changelog
1.1.0 (2018-01-05)
Slice.maxOpen
now has a second argument that can be used to prevent it from opening isolating nodes.
Changelog
1.0.0 (2017-10-13)
ParseRule.context
may now include multiple, pipe-separated context expressions.