Skip to content

EditorView.coordsForChar method

EditorView › coordsForChar

Official

Return the rectangle around a given character.

Signature:

coordsForChar(pos: number): null | Rect

Parameters:

Parameter Type Description
pos number The document position.

Returns: null | RectThe rectangle or null.