CodeMirrorEditor.getRange method
CodeMirrorEditor › getRange
Unofficial
Get the text between two positions.Signature:
getRange(from: EditorPosition, to: EditorPosition): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| from | EditorPosition | The start position. |
| to | EditorPosition | The end position. |
Returns: string — The text between the two positions.