Skip to content

Type Editor


Type Editor / @type-editor/dom-change-util / types/dom-change/ParseBetweenResult

types/dom-change/ParseBetweenResult

Interfaces

InterfaceDescription

ParseBetweenResult

Represents the result of parsing a DOM range into a ProseMirror document.

This interface encapsulates all information extracted from parsing a DOM range, including the parsed document content and reconstructed selection state.

ParseBetweenResult

Example

typescript
const result = parseBetween(view, 0, 10);
console.log(result.doc); // Parsed ProseMirror node
console.log(result.sel); // { anchor: 5, head: 5 } or null