Type Editor / @type-editor/dom-change-util / read-dom-change
read-dom-change
Remarks
All referencing and parsing is done with the start-of-operation selection and document, since that's the one that the DOM represents. If any changes came in the meantime, the modification is mapped over those before it is applied.
Functions
| Function | Description |
|---|---|
Reads and processes changes from the DOM, converting them into ProseMirror transactions. This is the main entry point for handling DOM mutations and converting them into document updates. It orchestrates the entire DOM change detection and processing pipeline, including: Core Process:
Special Handling:
Transaction Types:
The function ensures that all changes maintain document validity and properly handle edge cases across different browsers and input methods. See
Example typescript |