Included Extensions
- CodeExtension - CodeNode (code blocks)
- CodeHighlighterShikiExtension - Highlighting with Shiki for CodeNode
- DragonExtension - Dragon (speech to text) support, included by default with RichTextExtension and PlainTextExtension
- AutoFocusExtension - Focus the editor when it is created (e.g. on page load)
- ClearEditorExtension - Implementation for the
CLEAR_EDITOR_COMMAND
- EditorStateExtension - Provide EditorState as a signal (alternative to
registerUpdateListener
) - HorizontalRuleExtension - HorizontalRuleNode (
<hr>
tag) - InitialStateExtension - Sets the initial state of the editor (always included)
- NodeSelectionExtension - Tracks selection, typically for DecoratorNodes
- TabIndentationExtension - Changes Tab key to insert tabs and indent instead of natively focusing the next field
- HashtagExtension - HashtagNode
- HistoryExtension - History support (undo/redo)
- SharedHistoryExtension - History sharing between a parent editor and its nested editors
- AutoLinkExtension - AutoLinkNode, note that matchers have to be manually configured
- ClickableLinkExtension - Toggle between lexical selection and native click to open behavior for links
- LinkExtension - LinkNode (
<a>
tag)
- ListExtension - ListNode, ListItemNode
- CheckListExtension - Checklist support for ListNode and ListItemNode
- MarkExtension - MarkNode
- OverflowExtension - OverflowNode
- PlainTextExtension - Plain text editor, the return key creates a LineBreakNode by default (one ParagraphNode per document)
@lexical/react
- RichTextExtension - Rich Text editor (QuoteNode, HeadingNode), the return key creates a ParagraphNode by default (multiple ParagraphNode per document)
- TableExtension - TableNode, TableRowNode, TableCellNode
- TailwindExtension - A theme configuration that uses Tailwind classes