Skip to content

Doc.getSelection method

Doc › getSelection

Unofficial

Gets the currently selected text.

Signature:

getSelection(lineSep?: string | undefined): string

Parameters:

ParameterTypeDescription
lineSep?string | undefinedOptional line separator.

Returns: stringThe selected text.