Skip to content

EditorView.domAtPos method

EditorView › domAtPos

Official

Find the DOM parent node and offset at the given document position.

Signature:

domAtPos(pos: number): EditorViewDomPosition

Parameters:

ParameterTypeDescription
posnumberThe document position.

Returns: EditorViewDomPositionThe DOM node and offset.