CodeMirrorEditor.indexFromPos method
CodeMirrorEditor › indexFromPos
Unofficial
Convert an editor position to a character index within the document.Signature:
indexFromPos(pos: EditorPosition): numberParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | EditorPosition | The editor position to convert. |
Returns: number — The character index.