Skip to main content

Module: @lexical/headless

Functions

createHeadlessEditor

createHeadlessEditor(editorConfig?): LexicalEditor

Generates a headless editor that allows lexical to be used without the need for a DOM, eg in Node.js. Throws an error when unsupported methods are used.

Parameters

NameTypeDescription
editorConfig?CreateEditorArgsThe optional lexical editor configuration.

Returns

LexicalEditor

  • The configured headless editor.

Defined in

packages/lexical-headless/src/index.ts:19