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:

ParameterTypeDescription
linenumberThe line number.
chnumberThe character offset.

Returns: void