EditorView.domAtPos method
EditorView › domAtPos
Official
Find the DOM parent node and offset at the given document position.Signature:
domAtPos(pos: number): EditorViewDomPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | number | The document position. |
Returns: EditorViewDomPosition — The DOM node and offset.