Function
Main Lexical editor component with VS Code theme integration. Provides a rich text editing experience with support for various formatting options, lists, links, and markdown shortcuts. Includes an optional toolbar for visual formatting.
LexicalEditor
Component properties
The rendered Lexical editor
<LexicalEditor initialContent={savedContent} onSave={(content) => saveToFile(content)} onContentChange={(content) => setDirtyState(true)} showToolbar={true}/> Copy
<LexicalEditor initialContent={savedContent} onSave={(content) => saveToFile(content)} onContentChange={(content) => setDirtyState(true)} showToolbar={true}/>
Main Lexical editor component with VS Code theme integration. Provides a rich text editing experience with support for various formatting options, lists, links, and markdown shortcuts. Includes an optional toolbar for visual formatting.
LexicalEditor