Skip to content

Doc.getSelection method

Doc › getSelection

Unofficial

Gets the currently selected text.

Signature:

getSelection(lineSep?: string | undefined): string

Parameters:

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

Returns: stringThe selected text.