Skip to content

Type Editor


Type Editor / @type-editor/model / types/dom-parser/ParseOptions

types/dom-parser/ParseOptions

Interfaces

InterfaceDescription

ParseOptions

Configuration options recognized by the DOM parser's parse and parseSlice methods. These options control how DOM content is converted into ProseMirror document structure.

Example

typescript
const options: ParseOptions = {
  preserveWhitespace: "full",
  from: 0,
  to: 5,
  findPositions: [{ node: someNode, offset: 10 }],
};