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
| Name | Type | Description |
|---|---|---|
editorConfig? | CreateEditorArgs | The optional lexical editor configuration. |
Returns
- The configured headless editor.