Skip to main content

$selectAll

function

Selects all content within the root. If a selection is provided, scopes to the nearest root or shadow root; otherwise creates a new RangeSelection spanning the entire root.

function $selectAll(selection?: RangeSelection | null): RangeSelection

Import

import { $selectAll } from '@modular/sdk/editor';