Skip to main content

$insertNodes

function

Inserts nodes into the current selection, falling back to the previous selection or the end of the root.

function $insertNodes(nodes: LexicalNode[]): void

Import

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