Skip to content

Doc.replaceSelections method

Doc › replaceSelections

Unofficial

Replaces the content of the selections.

Signature:

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

Parameters:

ParameterTypeDescription
replacementsstring[]The replacement strings.
collapse?null | stringHow to collapse selections after replacement.
origin?null | stringOptional origin string.

Returns: void