Skip to main content

Module: @lexical/headless

Functions

createHeadlessEditor

createHeadlessEditor(editorConfig?): LexicalEditor

Parameters

NameType
editorConfig?Object
editorConfig.disableEvents?boolean
editorConfig.editorState?EditorState
editorConfig.namespacestring
editorConfig.nodes?readonly Klass<LexicalNode>[]
editorConfig.onError(error: Error) => void
editorConfig.parentEditor?LexicalEditor
editorConfig.readOnly?boolean
editorConfig.theme?EditorThemeClasses

Returns

LexicalEditor

Defined in

lexical-headless/src/index.ts:20