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 metehods are used.

Parameters

NameTypeDescription
editorConfig?CreateEditorArgsThe optional lexical editor configuration.

Returns

LexicalEditor

  • The configured headless editor.

Defined in

lexical-headless/src/index.ts:20