Skip to main content

RichEditSelection.goToDocumentStart Method

Moves the cursor to the start of the active sub-document and allows you to extend the selection.

Declaration

goToDocumentStart(
    extendSelection?: boolean
): void

Parameters

Name Type Description
extendSelection boolean

true to extend the selection; otherwise, false.

Remarks

// Inserts text at the start of the active sub-document
richEdit.selection.goToDocumentStart(false);
richEdit.commands.insertText.execute('The beginning.');

Refer to the following section for more information: Client Selection.

See Also