Skip to content

CodeMirrorEditor.setCursor method

CodeMirrorEditor › setCursor

Unofficial

Set the cursor position to the given line and character.

Signature:

setCursor(line: number, ch: number): void

Parameters:

Parameter Type Description
line number The line number.
ch number The character offset.

Returns: void