Skip to main content

$applyNodeReplacement

function

Applies any registered node replacement for the given node's type, returning the replacement node or the original if none is registered.

function $applyNodeReplacement<N extends LexicalNode>(node: N): N

Import

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