Skip to content

CodeMirrorEditor.posFromIndex method

CodeMirrorEditor › posFromIndex

Unofficial

Convert a character index to an editor position.

Signature:

posFromIndex(index: number): EditorPosition

Parameters:

Parameter Type Description
index number The character index to convert.

Returns: EditorPositionThe editor position.