Type Editor / @type-editor/model / dom-parser/DOMParser
dom-parser/DOMParser
Classes
| Class | Description |
|---|---|
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. The parser processes DOM nodes and converts them into ProseMirror document nodes based on the configured parse rules. It supports both tag-based rules (matching DOM elements by selector) and style-based rules (matching CSS properties). Example typescript |