Skip to content

CodeMirrorEditor.getRange method

CodeMirrorEditor › getRange

Unofficial

Get the text between two positions.

Signature:

getRange(from: EditorPosition, to: EditorPosition): string

Parameters:

Parameter Type Description
from EditorPosition The start position.
to EditorPosition The end position.

Returns: stringThe text between the two positions.