Skip to content

Cm5Editor.setSelections method

Cm5Editor › setSelections

Unofficial

Sets a new set of selections.

Signature:

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

Parameters:

ParameterTypeDescription
rangesCm5SelectionRange[]The selection ranges.
primary?numberThe index of the primary selection.
options?Cm5SelectionOptionsOptional selection options.

Returns: void