Rich text editor built on Lexical for Payload rich text fields
Rich text editor adapters for Payload CMS 5
Lexical and Slate are the official rich text editors for Payload CMS. React helpers add inline visual editing in Live Preview on top of them.
Slate-based rich text editor for Payload rich text fields
React and Next.js helpers that mark page markup for inline editing
Rich text field adapter with a fixed toolbar, nested editing and lightweight internal links
React and Next.js helpers for inline editing of Payload pages in Live Preview
About these packages
A rich text editor adapter defines how Payload edits and stores rich text fields. You pick one in the editor option of payload.config. The Payload team maintains both official options, Lexical and Slate.
What these adapters cover
- Lexical, the default editor
- Feature-based configuration for toolbars, links, lists, tables and uploads
- Blocks and inline blocks inside rich text
- Converters from Lexical JSON to HTML and Markdown
- Slate, the editor of earlier Payload versions
- Visual Editor React for inline editing in Live Preview
Choosing an editor
Start new projects on Lexical. It is the default editor and gets most of the development. Slate stays useful for projects whose documents already store Slate content. Visual Editor React adds inline editing in Live Preview to a React or Next.js frontend. It is listed as a fork, so check who maintains it. Extra Lexical features such as text color or code blocks are editor plugins.
Frequently asked questions
Should I use Lexical or Slate?
Use Lexical for new projects. Keep Slate only while existing documents store Slate content that you have not migrated yet.
How do I render Lexical content on my frontend?
Payload ships converters to HTML and JSX. Community renderers cover Astro, React Native and other targets. You will find them among the frontend tools.
Can I add my own features to the Lexical editor?
Yes. Payload builds Lexical out of features, so you can enable the built-in ones you need and write your own, including custom blocks.



