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:

ParameterTypeDescription
replacementsstring[]The replacement strings.
collapse?string | null | undefinedHow to collapse the selection after replacement.
origin?string | null | undefinedOptional origin string.

Returns: void