Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
An extensible text editor framework that provides excellent reliability, accessibility and performance.
Documentation | Getting Started | Playground | Gallery
For framework-agnostic usage, start with the Vanilla JS quick start or the Vanilla JS example.
For React applications, install Lexical with the official React bindings:
npm install lexical @lexical/react…Try it yourself:
# Install dependencies
pnpm install
# Start playground dev server
pnpm run start
# Run tests
pnpm run test-unit
pnpm run test-e2e-chromium
# Lint and type check
pnpm run ci-checkSee CONTRIBUTING.md for detailed development guidelines.
| Browser | Version |
|---|---|
| Chrome | 86+ |
| Firefox | 115+ |
| Safari | 15+ |
| Edge | 86+ |
We welcome contributions! Please read our Contributing Guide to learn about our development process and how to propose bugfixes and improvements.
MIT License Copyright ©2026 Meta Platforms, Inc.
Bug: [lexical-rich-text] Enter after a line break or an inline decorator in a heading turns the text before it into a paragraph
Feature: [lexical] Let an inline ElementNode opt out of having a range's end moved into it when the selection is read back
Bug: [lexical] Composing into a TextNode subclass replaces it with a plain TextNode, losing its type, key and node state
Bug: Arrow key navigation behavior for DecoratorNodes differs between RichTextPlugin and PlainTextPlugin
Bug: [lexical-plain-text] An arrow key on a node-selected decorator sends what is typed next to the top of the document
Bug: [lexical-table] Once a document has a table, every cut goes through the table's handler, even one nowhere near the table
Bug: [lexical] Typing at a link's edge is lost, or lands before the link, when the caret's text is in an inline element inside the link
Bug: [lexical] A caret in a named slot or another editable island is never scrolled into view
Bug: [lexical-plain-text][lexical-rich-text] A copy, cut or paste inside a decorator's input acts on the editor's selection
Bug: [lexical] After a second edit in a decorator's named slot, the root's cached text repeats the old slot text