# Lexical

MIT\-licensed extensible text\-editor framework with an internal document model, optional packages and React/Yjs integrations\.

ID: Q690 · Revision: 738

Type: software · License: MIT[^license] · Status: active

Website: https://lexical.dev



Lexical is an open\-source framework for building text editors\. It maintains a document model behind a contenteditable element and provides optional packages for richer features\. The core is framework\-agnostic, with React bindings available\. Applications still supply toolbars, layout, styling and storage, so it is a foundation for an editor rather than a complete hosted writing product\.[^intro]

## Capabilities and substitutions

### Composable editing infrastructure — supported

Core and optional packages support custom plain/rich\-text editors; UI and storage are application work\.[^intro]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

### Document serialization — supported

JSON restores a node tree with matching registered node types; compact output needs sufficiently new readers\.[^serialization]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

### Serialized cursor and runtime node keys — unsupported

Editor\-state JSON stores the document tree, not selection or runtime keys\.[^state]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

### Reactive replacement via initial configuration — limited

Initial config is applied once; loading later content requires the editor update/replacement APIs\.[^state][^react]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

### Collaborative React integration — supported

Yjs bindings and plugins are documented with a separate connection provider/server\.[^collaboration]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

### [Substitute for Tiptap](/tiptap) — limited

Can replace Tiptap as a custom editor framework after rewriting extensions/nodes, UI commands and document integration\. JSON formats and collaboration state are not automatically interchangeable\.[^intro][^serialization][^tiptap]

Use case: Building custom text and rich\-text editing experiences · Platforms: Web browsers, Framework\-agnostic core with React bindings · Region: Version, build and integration requirements apply

## References

[^license]: [Lexical license](<https://github.com/facebook/lexical/blob/main/LICENSE>) — MIT terms (vendor; retrieved 2026-10-07T23:26:08Z)

[^intro]: [Lexical introduction](<https://lexical.dev/docs/intro>) — Core model, optional packages and app\-owned interface/storage (vendor; retrieved 2026-10-07T23:26:18Z)

[^state]: [Lexical editor state](<https://lexical.dev/docs/concepts/editor-state>) — Immutable committed snapshots, synchronous updates and serialized\-state scope (vendor; retrieved 2026-10-07T23:26:48Z)

[^serialization]: [Lexical serialization](<https://lexical.dev/docs/serialization/>) — Registered node types, compact JSON reader compatibility and additive evolution (vendor; retrieved 2026-10-07T23:26:26Z)

[^react]: [Lexical React FAQ](<https://lexical.dev/docs/react/faq>) — One\-time initial configuration and StrictMode effect discipline (vendor; retrieved 2026-10-07T23:26:57Z)

[^collaboration]: [Lexical React collaboration](<https://lexical.dev/docs/collaboration/react>) — Yjs plugins, y\-websocket provider and server persistence (vendor; retrieved 2026-10-07T23:26:35Z)

[^tiptap]: [Tiptap editor overview](<https://tiptap.dev/docs/editor/getting-started/overview>) — Headless ProseMirror\-based alternative (vendor; retrieved 2026-10-07T23:25:21Z)

Source revision: https://substitutefor.net/entities/Q690?revision=738
