@lexical/headless
Functions
createHeadlessEditor()
createHeadlessEditor(
editorConfig?
):LexicalEditor
Defined in: packages/lexical-headless/src/index.ts:19
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
editorConfig?
The optional lexical editor configuration.
Returns
- The configured headless editor.