Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

lexical

> 编程语言
Open source

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.

23.7K stars0 likes2 views
WebsiteGitHub

About

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


Features

  • Framework Agnostic Core - Works with any UI framework, with official React bindings
  • Reliable & Accessible - Built-in accessibility support and WCAG compliance
  • Extensible - Plugin-based architecture with powerful extension points
  • Immutable State Model - Time-travel ready with built-in undo/redo
  • Collaborative Editing - Real-time collaboration via Yjs integration
  • Serialization - Import/export from JSON, Markdown, and HTML
  • Rich Content - Support for tables, lists, code blocks, images, and custom nodes
  • Cross-browser - Firefox 115+, Safari 15+, Chrome 86+ (see Supported Browsers)
  • Type Safe - Written in TypeScript with comprehensive type definitions

Quick Start

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:

bash
npm install lexical @lexical/react
…

Try it yourself:

  • Plain Text Example
  • Rich Text Example

Development

bash
# 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-check

See CONTRIBUTING.md for detailed development guidelines.

Documentation

  • User Guide: lexical.dev/docs/intro
  • API Reference: lexical.dev/docs/api
  • Developer Guide: AGENTS.md - Architecture and development workflows
  • Examples: examples/ - Sample implementations

Community & Support

  • Discord: Join our Discord server for announcements, questions, discussions
  • Issues: Report bugs and request features on GitHub Issues
  • Release Notes: Release notes are available in Github Releases

Browser Support

Browser Version
Chrome 86+
Firefox 115+
Safari 15+
Edge 86+

Contributors

We welcome contributions! Please read our Contributing Guide to learn about our development process and how to propose bugfixes and improvements.

License

MIT License Copyright ©2026 Meta Platforms, Inc.

Issues· 325 open

View all issuesOpen on GitHub
  • #9293

    Bug: [lexical-rich-text] Enter after a line break or an inline decorator in a heading turns the text before it into a paragraph

    Updated Sep 30, 2026
  • #9290

    Feature: [lexical] Let an inline ElementNode opt out of having a range's end moved into it when the selection is read back

    Updated Sep 30, 2026
  • #9289

    Bug: [lexical] Composing into a TextNode subclass replaces it with a plain TextNode, losing its type, key and node state

    Updated Sep 30, 2026
  • #4214

    Bug: Arrow key navigation behavior for DecoratorNodes differs between RichTextPlugin and PlainTextPlugin

    all-platforms-bugcoreplain-textUpdated Sep 30, 2026
  • #9282

    Bug: [lexical-plain-text] An arrow key on a node-selected decorator sends what is typed next to the top of the document

    Updated Sep 30, 2026
  • #9281

    Bug: [lexical-table] Once a document has a table, every cut goes through the table's handler, even one nowhere near the table

    Updated Sep 30, 2026
  • #9280

    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

    Updated Sep 30, 2026
  • #9279

    Bug: [lexical] A caret in a named slot or another editable island is never scrolled into view

    Updated Sep 30, 2026
  • #9278

    Bug: [lexical-plain-text][lexical-rich-text] A copy, cut or paste inside a decorator's input acts on the editor's selection

    Updated Sep 30, 2026
  • #9277

    Bug: [lexical] After a second edit in a decorator's named slot, the root's cached text repeats the old slot text

    Updated Sep 30, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言