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:

ParameterTypeDescription
rangesCm5SelectionRange[]The selection ranges.
primary?number | undefinedThe index of the primary selection.
options?Cm5SelectionOptions | undefinedOptional selection options.

Returns: void