Module: @lexical/headless
Functions
createHeadlessEditor
▸ createHeadlessEditor(editorConfig?
): LexicalEditor
Parameters
Name | Type |
---|---|
editorConfig? | Object |
editorConfig.disableEvents? | boolean |
editorConfig.editorState? | EditorState |
editorConfig.namespace | string |
editorConfig.nodes? | readonly Klass <LexicalNode >[] |
editorConfig.onError | (error : Error ) => void |
editorConfig.parentEditor? | LexicalEditor |
editorConfig.readOnly? | boolean |
editorConfig.theme? | EditorThemeClasses |
Returns
Defined in
lexical-headless/src/index.ts:20