Skip to main content

getNearestEditorFromDOMNode

function

Returns the nearest LexicalEditor instance by walking up the DOM tree from the given node, or null if none is found.

function getNearestEditorFromDOMNode(node: Node | null): LexicalEditor | null

Import

import { getNearestEditorFromDOMNode } from '@modular/sdk/editor';