Type Editor / @type-editor/dom-util / text-node-before
text-node-before
Functions
| Function | Description |
|---|---|
Finds the text node before a given position in the DOM tree. Traverses the DOM tree backward from the given position to find the nearest preceding text node. Stops at non-editable elements and block boundaries. Example typescript |