substitutefor

software · Q690

Substitutes for Lexical

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

Suggest a correction

Compare your options

Find a substitute for Lexical

Start with what you need to do. Compare the fit, differences, and sources for each option.

1 option

Tiptap

Sourced comparison

Embedding a customized rich-text editor in a web application limited

Tiptap → Lexical

Can replace Lexical as the foundation of a custom rich-text editor after rewriting nodes/extensions, commands and persistence integration. Native document JSON and collaboration state are not established as interchangeable.

Platforms: Web browsers, React, Vue, Svelte or other framework integrations · Region: Version, build and integration requirements apply

Sources for this comparison (4)Article revision 951
How Lexical compares as a replacement

Building custom text and rich-text editing experiences limited

Lexical → Tiptap

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.

Platforms: Web browsers, Framework-agnostic core with React bindings · Region: Version, build and integration requirements apply

Sources for this comparison (3)Article revision 738

Overview

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.[2]

Editor infrastructure and product interface

Lexical supplies the editor, base node types, commands, selection handling and DOM reconciliation. Optional packages add features around that core, while the application supplies its controls and persistence. This makes it relevant to a comments field, a CMS editor or a richer document interface, but the amount of product UI to build depends on the selected packages and requirements.[2]

Working with the document model

The model, rather than the editable DOM, is the source of truth. Committed editor states are immutable snapshots; updates occur in synchronous callbacks, and state-sensitive dollar-prefixed functions must run in the appropriate read or update context. Asynchronous work should finish before entering that context. The saved JSON describes the document tree and omits selection and runtime node keys, so it is not a full recording of the user's transient editing session.[3]

Saved content depends on compatible readers

Restoring JSON requires the relevant node types to be registered. Current serialization documentation distinguishes legacy output from opt-in compact output and warns that compact documents need sufficiently new readers. It recommends additive property evolution with defaults rather than silently changing the meaning of existing fields. These are document-lifecycle requirements for an application that keeps content longer than one deployment.[4]

Interchange is not the same as native persistence

Lexical documents JSON, HTML and Markdown paths. HTML conversion requires a DOM environment and uses configured conversion rules; JSON and Markdown do not inherently require that environment. A generic file-format label does not establish lossless import from another editor's custom nodes. A migration should compare representative content rather than assume both editors storing JSON means their data is compatible.[4][7]

Initial configuration and repeated effects

The React FAQ says initial configuration is considered when the editor is created, rather than functioning as an ordinary controlled value updated on every render. It also emphasizes correct effect behavior under StrictMode, including avoiding duplicate document changes during initialization. Generated React code should therefore use the appropriate editor APIs for later content changes and clean up its effects rather than repeatedly reseed the document.[5]

Collaborative editing needs infrastructure

Lexical provides React collaboration integration on top of Yjs bindings. The inspected guide identifies y-websocket as its officially supported connection provider and requires a WebSocket server to synchronize clients. Persistence across server restarts is a separate configuration. This is an integration route, not a hosted collaboration account or a guarantee that authorization, deployment and document retention are already implemented.[6]

License and substitution

Lexical's source is MIT-licensed. It can replace Tiptap as the basis of a custom text editor when its document model and packages fit the product. That requires adapting nodes, commands, UI and persistence rather than only changing a component import. No installation, document conversion or collaborative-session test was performed.[1][2][7]

Capabilities & limitations

Composable editing infrastructure

supported

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

Building custom text and rich-text editing experiences · Web browsers, Framework-agnostic core with React bindings · Version, build and integration requirements apply

1 source · check evidence
https://lexical.dev/docs/intro

Core model, optional packages and app-owned interface/storage

vendor · checked 2026-10-07

Document serialization

supported

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

Building custom text and rich-text editing experiences · Web browsers, Framework-agnostic core with React bindings · Version, build and integration requirements apply

1 source · check evidence
https://lexical.dev/docs/serialization/

Registered node types, compact JSON reader compatibility and additive evolution

vendor · checked 2026-10-07

Serialized cursor and runtime node keys

unsupported

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

Building custom text and rich-text editing experiences · Web browsers, Framework-agnostic core with React bindings · Version, build and integration requirements apply

1 source · check evidence
https://lexical.dev/docs/concepts/editor-state

Immutable committed snapshots, synchronous updates and serialized-state scope

vendor · checked 2026-10-07

Reactive replacement via initial configuration

limited

Initial config is applied once; loading later content requires the editor update/replacement APIs.[3][5]

Building custom text and rich-text editing experiences · Web browsers, Framework-agnostic core with React bindings · Version, build and integration requirements apply

2 sources · check evidence
https://lexical.dev/docs/react/faq

One-time initial configuration and StrictMode effect discipline

vendor · checked 2026-10-07
https://lexical.dev/docs/concepts/editor-state

Immutable committed snapshots, synchronous updates and serialized-state scope

vendor · checked 2026-10-07

Collaborative React integration

supported

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

Building custom text and rich-text editing experiences · Web browsers, Framework-agnostic core with React bindings · Version, build and integration requirements apply

1 source · check evidence
https://lexical.dev/docs/collaboration/react

Yjs plugins, y-websocket provider and server persistence

vendor · checked 2026-10-07

References

  1. Lexical license

    MIT terms

    vendor · retrieved 2026-10-07
  2. Lexical introduction

    Core model, optional packages and app-owned interface/storage

    vendor · retrieved 2026-10-07
  3. Lexical editor state

    Immutable committed snapshots, synchronous updates and serialized-state scope

    vendor · retrieved 2026-10-07
  4. Lexical serialization

    Registered node types, compact JSON reader compatibility and additive evolution

    vendor · retrieved 2026-10-07
  5. Lexical React FAQ

    One-time initial configuration and StrictMode effect discipline

    vendor · retrieved 2026-10-07
  6. Lexical React collaboration

    Yjs plugins, y-websocket provider and server persistence

    vendor · retrieved 2026-10-07
  7. Tiptap editor overview

    Headless ProseMirror-based alternative

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
7382026-10-13 03:22:59/* wbeditentity-create-item:0| */ sf:570ca1ce-09c3-4a29-a36b-5226b51bece0:v1 | Adds Lexical with app-owned UI/storage, synchronous state updates, version-sensitive serialization, initial-state semantics and collaboration backend requiremen | attribution: /proposals/570ca1ce-09c3-4a29-a36b-5226b51bece0