Skip to main content

createEditor

function

Creates a new LexicalEditor attached to a single contentEditable (provided in the config). This is the lowest-level initialization API for a LexicalEditor. If you're using React or another framework, consider using the appropriate abstractions, such as LexicalComposer

function createEditor(editorConfig?: CreateEditorArgs): LexicalEditor

Import

import { createEditor } from '@modular/sdk/editor';

Notes

returns
a LexicalEditor instance