Lexical is a modular rich text editor framework used to build extensible web-based editors. It functions as a state-driven content editor that maintains a serializable, immutable snapshot of document content to ensure predictable updates and accessibility compliance.
The framework is distinguished by its plugin-based architecture and customizable node framework, which allow developers to extend editor behavior through specialized content nodes and encapsulated runtime logic. It also includes a collaborative editing engine capable of synchronizing document state across multiple clients in real time using shared data models and conflict resolution.
The toolkit covers a broad range of capabilities, including the development of block-based editing workflows, chat composers, and rich input fields. It provides tools for web content management through the serialization of state to JSON, HTML, and Markdown, as well as a DOM-based text processor that maps internal state to browser selection ranges.