Embeds @lexical/code in the Payload Lexical rich text editor so editors can insert code blocks. It is a stopgap until a code block feature is included in the official richtext-lexical package. The author states it will not receive new features or automated tests. Targets Payload 2.4 and later within the 2.x line.
A workaround for using @lexical/code with PayloadCMS until the core team integrates into the official package.
Installation
npm i payload-code-block-feature11
Stars
2
Forks
0
Open Issues
2 years ago
Last Updated
5
Weekly Downloads
v0.0.0-alpha.0
npm Version
40.1 KB
Unpacked Size
1
Dependencies
110 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 11 |
| Dec 4, 2026 | 11 |
| Dec 3, 2026 | 11 |
| Dec 2, 2026 | 11 |
| Dec 1, 2026 | 11 |
| Nov 30, 2026 | 11 |
| Nov 29, 2026 | 11 |
| Nov 28, 2026 | 11 |
| Nov 27, 2026 | 11 |
| Nov 26, 2026 | 11 |
| Nov 25, 2026 | 11 |
| Nov 24, 2026 | 11 |
| Nov 23, 2026 | 11 |
| Nov 22, 2026 | 11 |
| Nov 21, 2026 | 11 |
| Nov 20, 2026 | 11 |
| Nov 19, 2026 | 11 |
| Nov 18, 2026 | 11 |
| Nov 17, 2026 | 11 |
| Nov 16, 2026 | 11 |
| Nov 15, 2026 | 11 |
| Nov 14, 2026 | 11 |
| Nov 13, 2026 | 11 |
| Nov 12, 2026 | 11 |
| Nov 11, 2026 | 11 |
| Nov 10, 2026 | 11 |
| Nov 9, 2026 | 11 |
| Nov 8, 2026 | 11 |
| Nov 7, 2026 | 11 |
| Nov 6, 2026 | 11 |
| Nov 5, 2026 | 11 |
| Nov 4, 2026 | 11 |
| Nov 3, 2026 | 11 |
| Nov 2, 2026 | 11 |
| Nov 1, 2026 | 11 |
| Oct 31, 2026 | 11 |
| Oct 30, 2026 | 11 |
| Oct 29, 2026 | 11 |
| Oct 28, 2026 | 11 |
| Oct 27, 2026 | 11 |
| Oct 26, 2026 | 11 |
| Oct 25, 2026 | 11 |
| Oct 24, 2026 | 11 |
| Oct 23, 2026 | 11 |
| Oct 22, 2026 | 11 |
| Oct 21, 2026 | 11 |
| Oct 20, 2026 | 11 |
| Oct 19, 2026 | 11 |
| Oct 18, 2026 | 11 |
| Oct 17, 2026 | 11 |
| Oct 16, 2026 | 11 |
| Oct 15, 2026 | 11 |
| Oct 14, 2026 | 11 |
| Oct 13, 2026 | 11 |
| Oct 12, 2026 | 11 |
| Oct 11, 2026 | 11 |
| Oct 10, 2026 | 11 |
| Oct 9, 2026 | 11 |
| Oct 8, 2026 | 11 |
| Oct 7, 2026 | 11 |
| Oct 6, 2026 | 11 |
| Oct 5, 2026 | 11 |
| Oct 4, 2026 | 11 |
| Oct 3, 2026 | 11 |
| Oct 2, 2026 | 11 |
| Oct 1, 2026 | 11 |
| Sep 30, 2026 | 11 |
| Sep 29, 2026 | 11 |
| Sep 28, 2026 | 11 |
| Sep 27, 2026 | 11 |
| Sep 26, 2026 | 11 |
| Sep 25, 2026 | 11 |
| Sep 24, 2026 | 11 |
| Sep 23, 2026 | 11 |
| Sep 22, 2026 | 11 |
| Sep 21, 2026 | 11 |
| Sep 20, 2026 | 11 |
| Sep 19, 2026 | 11 |
| Sep 18, 2026 | 11 |
| Sep 17, 2026 | 11 |
| Sep 16, 2026 | 11 |
| Sep 15, 2026 | 11 |
| Sep 14, 2026 | 11 |
| Sep 13, 2026 | 11 |
| Sep 12, 2026 | 11 |
| Sep 11, 2026 | 11 |
| Sep 10, 2026 | 11 |
| Sep 9, 2026 | 11 |
| Sep 8, 2026 | 11 |
| Sep 7, 2026 | 11 |
| Sep 6, 2026 | 11 |
8+2 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 8 |
| Dec 4, 2026 | 7 |
| Dec 3, 2026 | 7 |
| Dec 2, 2026 | 7 |
| Dec 1, 2026 | 13 |
| Nov 30, 2026 | 13 |
| Nov 29, 2026 | 13 |
| Nov 28, 2026 | 13 |
| Nov 27, 2026 | 14 |
| Nov 26, 2026 | 14 |
| Nov 25, 2026 | 14 |
| Nov 24, 2026 | 7 |
| Nov 23, 2026 | 7 |
| Nov 22, 2026 | 8 |
| Nov 21, 2026 | 6 |
| Nov 20, 2026 | 6 |
| Nov 19, 2026 | 11 |
| Nov 18, 2026 | 11 |
| Nov 17, 2026 | 12 |
| Nov 16, 2026 | 12 |
| Nov 15, 2026 | 13 |
| Nov 14, 2026 | 12 |
| Nov 13, 2026 | 12 |
| Nov 12, 2026 | 8 |
| Nov 11, 2026 | 8 |
| Nov 10, 2026 | 7 |
| Nov 9, 2026 | 7 |
| Nov 8, 2026 | 5 |
| Nov 7, 2026 | 5 |
| Nov 6, 2026 | 2 |
| Nov 5, 2026 | 1 |
| Nov 4, 2026 | 1 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 1 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 1 |
| Oct 30, 2026 | 1 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 3 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 2 |
| Oct 23, 2026 | 2 |
| Oct 22, 2026 | 3 |
| Oct 21, 2026 | 3 |
| Oct 20, 2026 | 3 |
| Oct 19, 2026 | 1 |
| Oct 18, 2026 | 1 |
| Oct 17, 2026 | 1 |
| Oct 16, 2026 | 2 |
| Oct 15, 2026 | 2 |
| Oct 14, 2026 | 2 |
| Oct 13, 2026 | 4 |
| Oct 12, 2026 | 4 |
| Oct 11, 2026 | 5 |
| Oct 10, 2026 | 5 |
| Oct 9, 2026 | 4 |
| Oct 8, 2026 | 5 |
| Oct 7, 2026 | 5 |
| Oct 6, 2026 | 5 |
| Oct 5, 2026 | 7 |
| Oct 4, 2026 | 6 |
| Oct 3, 2026 | 6 |
| Oct 2, 2026 | 8 |
| Oct 1, 2026 | 6 |
| Sep 30, 2026 | 6 |
| Sep 29, 2026 | 5 |
| Sep 28, 2026 | 5 |
| Sep 27, 2026 | 5 |
| Sep 26, 2026 | 8 |
| Sep 25, 2026 | 6 |
| Sep 24, 2026 | 8 |
| Sep 23, 2026 | 8 |
| Sep 22, 2026 | 8 |
| Sep 21, 2026 | 6 |
| Sep 20, 2026 | 7 |
| Sep 19, 2026 | 4 |
| Sep 18, 2026 | 4 |
| Sep 17, 2026 | 3 |
| Sep 16, 2026 | 4 |
| Sep 15, 2026 | 4 |
| Sep 14, 2026 | 6 |
| Sep 13, 2026 | 5 |
| Sep 12, 2026 | 5 |
| Sep 11, 2026 | 5 |
| Sep 10, 2026 | 5 |
| Sep 9, 2026 | 5 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 6 |
| Sep 6, 2026 | 6 |
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/729940459-root)<a href="https://payloaddirectory.dev/plugins/729940459-root"><img src="https://payloaddirectory.dev/badge/729940459-root.svg" alt="Payload Directory"></a>README
This package embeds @lexical/code in the editor in PayloadCMS and is not intended to produce long-term functionality for PayloadCMS. Most likely, the Code Block feature will be included in the @payloadcms/richtext-lexical package, and this package comes as a solution for people who want the functionality but can't wait for an official variant.
Therefore, this package will not have new features in the future, nor automated tests.
payload plugin lexical
Lexical-based rich text editor field for Payload 1.x with tables, embeds, and a customizable feature set
35152/wk213v1
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 shiki code
Server-rendered Shiki syntax-highlighted code block for Payload Lexical richtext fields
372.2k/wk3v3
Payloadcms Dynamic Value Richtext Plugin
Insert reusable dynamic field values as badges inside the Lexical rich text editor
3317/wk1v3
ox payload editorial
Editorial Lexical blocks written as markdown directives, with lossless round trip and token-styled rendering
250v3 v4