Skip to main content

Module: @lexical/headless

Functions

createHeadlessEditor

createHeadlessEditor(editorConfig?): LexicalEditor

Parameters

NameType
editorConfig?Object
editorConfig.editable?boolean
editorConfig.editorState?EditorState
editorConfig.namespace?string
editorConfig.nodes?readonly Klass<LexicalNode>[]
editorConfig.onError?ErrorHandler
editorConfig.parentEditor?LexicalEditor
editorConfig.theme?EditorThemeClasses

Returns

LexicalEditor

Defined in

lexical-headless/src/index.ts:22