Skip to content

Doc.replaceSelections method

Doc › replaceSelections

Unofficial

Replaces the content of the selections.

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 selections after replacement.
origin?string | null | undefinedOptional origin string.

Returns: void