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:

Parameter Type Description
selections EditorSelection[] The selections to set.
primaryIndex? number | undefined The index of the primary selection.

Returns: void