createEditor
functionCreates 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
Import
import { createEditor } from '@modular/sdk/editor';Notes
- returns
- a LexicalEditor instance