Skip to content

Cm5Editor.replaceSelections method

Cm5Editor › replaceSelections

Unofficial

Replaces the content of the selections with the given strings.

Signature:

replaceSelections(replacements: string[], collapse?: string | null | undefined, origin?: string | null | undefined): void

Parameters:

Parameter Type Description
replacements string[] The replacement strings.
collapse? string | null | undefined How to collapse the selection after replacement.
origin? string | null | undefined Optional origin string.

Returns: void