Skip to main content

$getRoot

function

Returns the RootNode of the active EditorState.

function $getRoot(): RootNode

Import

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