prosemirror-model
Advanced tools
Changelog
0.14.1 (2016-11-30)
DOMParser.parseSlice
will now ignore whitespace-only text nodes at the top of the slice.
Changelog
0.14.0 (2016-11-28)
Parse rules now support skip
(skip outer element, parse content) and getContent
(compute content using custom code) properties.
The DOMSerializer
class now exports a static renderSpec
method that can help render DOM spec arrays.
Changelog
0.13.0 (2016-11-11)
ResolvedPos.sameDepth
is now called ResolvedPos.sharedDepth
, and takes a raw, unresolved position as argument.
DOMSerializer
's nodes
and marks
properties are now public.
ContentMatch.findWrapping
now takes a third argument, marks
. There's a new method findWrappingFor
that accepts a whole node.
Adds Slice.maxOpen
static method to create maximally open slices.
DOM parser objects now have a parseSlice
method which parses an HTML fragment into a Slice
, rather than trying to create a whole document from it.
Changelog
0.12.0 (2016-10-21)
Drops support for some undocumented options to the DOM serializer that were used by the view.
When rendering DOM attributes, only ignore null values, not all falsy values.