DOMParser
A DOM parser represents a strategy for parsing DOM content into a ProseMirror document conforming to a given schema. Its behavior is defined by an array of rules.
class DOMParser { }
§Constructors
§Properties
§
The set of parse rules that the parser uses, in order of precedence.
§Methods
§
Parses the content of the given DOM node, like
parse
, and takes the same set of
options. But unlike that method, which produces a whole node,
this one returns a slice that is open at the sides, meaning that
the schema constraints aren't applied to the start of nodes to
the left of the input and the end of nodes at the end.