Skip to content

Cm5Editor.setSelections method

Cm5Editor › setSelections

Unofficial

Sets a new set of selections.

Signature:

setSelections(ranges: Cm5SelectionRange[], primary?: number | undefined, options?: Cm5SelectionOptions | undefined): void

Parameters:

Parameter Type Description
ranges Cm5SelectionRange[] The selection ranges.
primary? number | undefined The index of the primary selection.
options? Cm5SelectionOptions | undefined Optional selection options.

Returns: void