CodeMirrorEditor.posFromIndex method
CodeMirrorEditor › posFromIndex
Unofficial
Convert a character index to an editor position.Signature:
posFromIndex(index: number): EditorPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The character index to convert. |
Returns: EditorPosition — The editor position.