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:

Parameter Type Description
pos number The document position.

Returns: EditorViewDomPositionThe DOM node and offset.