Adds extra features to the Payload Lexical rich text editor. Each feature is imported and added to the lexicalEditor features array, and can be used on its own or combined. JSX and HTML converters are provided to render the content on the frontend, and a CSS file must be imported for the color features.
Extended lexical editor features for Payload CMS
Installation
npm i payloadcms-lexical-ext73
Stars
19
Forks
14
Open Issues
1 years ago
Last Updated
1.3k
Weekly Downloads
v0.5.3
npm Version
171.0 KB
Unpacked Size
2
Dependencies
730 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 73 |
| Dec 4, 2026 | 73 |
| Dec 3, 2026 | 73 |
| Dec 2, 2026 | 73 |
| Dec 1, 2026 | 73 |
| Nov 30, 2026 | 73 |
| Nov 29, 2026 | 73 |
| Nov 28, 2026 | 73 |
| Nov 27, 2026 | 73 |
| Nov 26, 2026 | 73 |
| Nov 25, 2026 | 73 |
| Nov 24, 2026 | 73 |
| Nov 23, 2026 | 73 |
| Nov 22, 2026 | 73 |
| Nov 21, 2026 | 73 |
| Nov 20, 2026 | 73 |
| Nov 19, 2026 | 73 |
| Nov 18, 2026 | 73 |
| Nov 17, 2026 | 73 |
| Nov 16, 2026 | 73 |
| Nov 15, 2026 | 73 |
| Nov 14, 2026 | 73 |
| Nov 13, 2026 | 73 |
| Nov 12, 2026 | 73 |
| Nov 11, 2026 | 73 |
| Nov 10, 2026 | 73 |
| Nov 9, 2026 | 73 |
| Nov 8, 2026 | 73 |
| Nov 7, 2026 | 73 |
| Nov 6, 2026 | 73 |
| Nov 5, 2026 | 73 |
| Nov 4, 2026 | 73 |
| Nov 3, 2026 | 73 |
| Nov 2, 2026 | 73 |
| Nov 1, 2026 | 73 |
| Oct 31, 2026 | 73 |
| Oct 30, 2026 | 73 |
| Oct 29, 2026 | 73 |
| Oct 28, 2026 | 73 |
| Oct 27, 2026 | 73 |
| Oct 26, 2026 | 73 |
| Oct 25, 2026 | 73 |
| Oct 24, 2026 | 73 |
| Oct 23, 2026 | 73 |
| Oct 22, 2026 | 73 |
| Oct 21, 2026 | 73 |
| Oct 20, 2026 | 73 |
| Oct 19, 2026 | 73 |
| Oct 18, 2026 | 73 |
| Oct 17, 2026 | 73 |
| Oct 16, 2026 | 73 |
| Oct 15, 2026 | 73 |
| Oct 14, 2026 | 73 |
| Oct 13, 2026 | 73 |
| Oct 12, 2026 | 73 |
| Oct 11, 2026 | 73 |
| Oct 10, 2026 | 73 |
| Oct 9, 2026 | 73 |
| Oct 8, 2026 | 73 |
| Oct 7, 2026 | 73 |
| Oct 6, 2026 | 73 |
| Oct 5, 2026 | 73 |
| Oct 4, 2026 | 73 |
| Oct 3, 2026 | 73 |
| Oct 2, 2026 | 73 |
| Oct 1, 2026 | 73 |
| Sep 30, 2026 | 73 |
| Sep 29, 2026 | 73 |
| Sep 28, 2026 | 73 |
| Sep 27, 2026 | 73 |
| Sep 26, 2026 | 73 |
| Sep 25, 2026 | 73 |
| Sep 24, 2026 | 73 |
| Sep 23, 2026 | 73 |
| Sep 22, 2026 | 73 |
| Sep 21, 2026 | 73 |
| Sep 20, 2026 | 73 |
| Sep 19, 2026 | 73 |
| Sep 18, 2026 | 73 |
| Sep 17, 2026 | 73 |
| Sep 16, 2026 | 73 |
| Sep 15, 2026 | 73 |
| Sep 14, 2026 | 73 |
| Sep 13, 2026 | 73 |
| Sep 12, 2026 | 73 |
| Sep 11, 2026 | 73 |
| Sep 10, 2026 | 73 |
| Sep 9, 2026 | 73 |
| Sep 8, 2026 | 73 |
| Sep 7, 2026 | 73 |
| Sep 6, 2026 | 73 |
1.1K−177 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 1,135 |
| Dec 4, 2026 | 1,642 |
| Dec 3, 2026 | 2,588 |
| Dec 2, 2026 | 3,084 |
| Dec 1, 2026 | 3,086 |
| Nov 30, 2026 | 3,321 |
| Nov 29, 2026 | 4,312 |
| Nov 28, 2026 | 4,781 |
| Nov 27, 2026 | 4,528 |
| Nov 26, 2026 | 4,194 |
| Nov 25, 2026 | 3,708 |
| Nov 24, 2026 | 3,740 |
| Nov 23, 2026 | 3,602 |
| Nov 22, 2026 | 3,136 |
| Nov 21, 2026 | 3,170 |
| Nov 20, 2026 | 3,843 |
| Nov 19, 2026 | 3,482 |
| Nov 18, 2026 | 3,644 |
| Nov 17, 2026 | 3,569 |
| Nov 16, 2026 | 3,666 |
| Nov 15, 2026 | 3,463 |
| Nov 14, 2026 | 3,369 |
| Nov 13, 2026 | 2,845 |
| Nov 12, 2026 | 3,027 |
| Nov 11, 2026 | 2,870 |
| Nov 10, 2026 | 2,870 |
| Nov 9, 2026 | 2,661 |
| Nov 8, 2026 | 3,323 |
| Nov 7, 2026 | 3,780 |
| Nov 6, 2026 | 3,685 |
| Nov 5, 2026 | 3,305 |
| Nov 4, 2026 | 3,315 |
| Nov 3, 2026 | 3,316 |
| Nov 2, 2026 | 3,389 |
| Nov 1, 2026 | 2,929 |
| Oct 31, 2026 | 2,516 |
| Oct 30, 2026 | 2,362 |
| Oct 29, 2026 | 2,022 |
| Oct 28, 2026 | 1,598 |
| Oct 27, 2026 | 1,611 |
| Oct 26, 2026 | 1,621 |
| Oct 25, 2026 | 1,707 |
| Oct 24, 2026 | 1,855 |
| Oct 23, 2026 | 1,527 |
| Oct 22, 2026 | 1,921 |
| Oct 21, 2026 | 2,589 |
| Oct 20, 2026 | 2,591 |
| Oct 19, 2026 | 2,552 |
| Oct 18, 2026 | 1,987 |
| Oct 17, 2026 | 1,375 |
| Oct 16, 2026 | 1,456 |
| Oct 15, 2026 | 1,490 |
| Oct 14, 2026 | 1,239 |
| Oct 13, 2026 | 1,221 |
| Oct 12, 2026 | 1,193 |
| Oct 11, 2026 | 1,207 |
| Oct 10, 2026 | 1,378 |
| Oct 9, 2026 | 1,501 |
| Oct 8, 2026 | 1,228 |
| Oct 7, 2026 | 1,187 |
| Oct 6, 2026 | 1,219 |
| Oct 5, 2026 | 1,215 |
| Oct 4, 2026 | 1,409 |
| Oct 3, 2026 | 1,781 |
| Oct 2, 2026 | 2,001 |
| Oct 1, 2026 | 2,179 |
| Sep 30, 2026 | 2,152 |
| Sep 29, 2026 | 2,164 |
| Sep 28, 2026 | 2,163 |
| Sep 27, 2026 | 2,085 |
| Sep 26, 2026 | 1,744 |
| Sep 25, 2026 | 1,508 |
| Sep 24, 2026 | 1,792 |
| Sep 23, 2026 | 1,884 |
| Sep 22, 2026 | 1,891 |
| Sep 21, 2026 | 1,920 |
| Sep 20, 2026 | 2,163 |
| Sep 19, 2026 | 2,283 |
| Sep 18, 2026 | 2,760 |
| Sep 17, 2026 | 2,559 |
| Sep 16, 2026 | 2,213 |
| Sep 15, 2026 | 2,203 |
| Sep 14, 2026 | 2,197 |
| Sep 13, 2026 | 2,036 |
| Sep 12, 2026 | 1,917 |
| Sep 11, 2026 | 1,464 |
| Sep 10, 2026 | 1,356 |
| Sep 9, 2026 | 1,441 |
| Sep 8, 2026 | 1,420 |
| Sep 7, 2026 | 1,410 |
| Sep 6, 2026 | 1,312 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/907855621-root)<a href="https://payloaddirectory.dev/plugins/907855621-root"><img src="https://payloaddirectory.dev/badge/907855621-root.svg" alt="Payload Directory"></a>README
Ideal for content creators and developers who want to enrich their text content with more visual appeal.
This plugin adds new features to the Payload CMS lexical editor. You can use any of the features on its own or all of them togehter:
New features will be added - Create issues for new features or create them yourself and create a PR to share it with the community




npm install payloadcms-lexical-ext
or
yarn add payloadcms-lexical-ext
import { BgColorFeature, HighlightColorFeature, TextColorFeature, YoutubeFeature, VimeoFeature } from 'payloadcms-lexical-ext';
import 'payloadcms-lexical-ext/client/client.css'
lexicalEditor({
features: [
...defaultEditorFeatures,
...YourFeatures...
TextColorFeature(),
HighlightColorFeature(),
BgColorFeature(),
YoutubeFeature(),
VimeoFeature()
]
});
Add JSX or HTML converters
4.1 JSX Converters
components/RichText/index.tsx
import { JSXConverters } from 'payloadcms-lexical-ext'
const jsxConverters: JSXConvertersFunction<NodeTypes> = ({ defaultConverters }) => ({
...defaultConverters,
...JSXConverters
})
4.2 HTML Converters
import { consolidateHTMLConverters, convertLexicalToHTML, sanitizeServerEditorConfig } from '@payloadcms/richtext-lexical'
import { HTMLConverters } from 'payloadcms-lexical-ext'
...
const sanitizedEditorConfig = await sanitizeServerEditorConfig(editorConfig, req.payload.config)
await convertLexicalToHTML({
converters: [
...HTMLConverters,
...consolidateHTMLConverters({ editorConfig: sanitizedEditorConfig })
],
data: jsonEditorContent,
req,
})
The plugin comes with several customizable options:
TextColorFeature({
colors: [{
type: 'button',
label: 'Custom color',
color: '#1155aa'
}]
});
Contributions are welcome! To get started:
This project is licensed under the MIT License.
For questions or suggestions, feel free to open an issue or reach out to the Payload CMS community.
payload lexical typography
Lexical editor features for text color, font size, letter spacing, line height and font family
491.5k/wk109v?
fullscreen editor
Fullscreen mode for the Lexical rich text editor in the Payload admin
88347/wk115v4
payload editor
Declarative presets and typed feature toggles for configuring the Payload Lexical rich-text editor
7225/wk3v3
richtext
Rich-text child block, default Lexical editor preset and JSX renderer for Atomic Payload
6433/wk37v3
payload paste as markdown
Lexical editor feature for pasting raw Markdown through a toolbar button, slash command, or drawer
631.2k/wk0v3
payload richtext lexical react native
React Native renderer for serialized Lexical rich text content from Payload CMS
3918/wk0v3