Skip to content

Doc.getSelections method

Doc › getSelections

Unofficial

Returns an array containing a string for each selection.

Signature:

getSelections(lineSep?: string | undefined): string[]

Parameters:

Parameter Type Description
lineSep? string | undefined Optional line separator.

Returns: string[]The selected texts.