Skip to content

CodeMirrorEditor.setSelections method

CodeMirrorEditor › setSelections

Unofficial

Set multiple selections, optionally specifying the primary selection index.

Signature:

setSelections(selections: EditorSelection[], primaryIndex?: number | undefined): void

Parameters:

ParameterTypeDescription
selectionsEditorSelection[]The selections to set.
primaryIndex?number | undefinedThe index of the primary selection.

Returns: void