GeorgeHulpoi

payload code block feature

by GeorgeHulpoi
Rich text & editors
v2
^2.4.0
MIT

Overview

Summary generated from the README

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.

Features

  • Code block support in the Payload Lexical editor
  • Built on the @lexical/code package
  • Works with Payload versions from 2.4.0 in the 2.x range

Use cases

  • Add code snippets to rich text content in technical blogs or documentation built on Payload
  • Enable code blocks in Lexical before an official feature is available

From the author

A workaround for using @lexical/code with PayloadCMS until the core team integrates into the official package.

Installation

npm i payload-code-block-feature

11

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

GitHub stars

110 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 202611
Dec 4, 202611
Dec 3, 202611
Dec 2, 202611
Dec 1, 202611
Nov 30, 202611
Nov 29, 202611
Nov 28, 202611
Nov 27, 202611
Nov 26, 202611
Nov 25, 202611
Nov 24, 202611
Nov 23, 202611
Nov 22, 202611
Nov 21, 202611
Nov 20, 202611
Nov 19, 202611
Nov 18, 202611
Nov 17, 202611
Nov 16, 202611
Nov 15, 202611
Nov 14, 202611
Nov 13, 202611
Nov 12, 202611
Nov 11, 202611
Nov 10, 202611
Nov 9, 202611
Nov 8, 202611
Nov 7, 202611
Nov 6, 202611
Nov 5, 202611
Nov 4, 202611
Nov 3, 202611
Nov 2, 202611
Nov 1, 202611
Oct 31, 202611
Oct 30, 202611
Oct 29, 202611
Oct 28, 202611
Oct 27, 202611
Oct 26, 202611
Oct 25, 202611
Oct 24, 202611
Oct 23, 202611
Oct 22, 202611
Oct 21, 202611
Oct 20, 202611
Oct 19, 202611
Oct 18, 202611
Oct 17, 202611
Oct 16, 202611
Oct 15, 202611
Oct 14, 202611
Oct 13, 202611
Oct 12, 202611
Oct 11, 202611
Oct 10, 202611
Oct 9, 202611
Oct 8, 202611
Oct 7, 202611
Oct 6, 202611
Oct 5, 202611
Oct 4, 202611
Oct 3, 202611
Oct 2, 202611
Oct 1, 202611
Sep 30, 202611
Sep 29, 202611
Sep 28, 202611
Sep 27, 202611
Sep 26, 202611
Sep 25, 202611
Sep 24, 202611
Sep 23, 202611
Sep 22, 202611
Sep 21, 202611
Sep 20, 202611
Sep 19, 202611
Sep 18, 202611
Sep 17, 202611
Sep 16, 202611
Sep 15, 202611
Sep 14, 202611
Sep 13, 202611
Sep 12, 202611
Sep 11, 202611
Sep 10, 202611
Sep 9, 202611
Sep 8, 202611
Sep 7, 202611
Sep 6, 202611
npm weekly downloads

8+2 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 20268
Dec 4, 20267
Dec 3, 20267
Dec 2, 20267
Dec 1, 202613
Nov 30, 202613
Nov 29, 202613
Nov 28, 202613
Nov 27, 202614
Nov 26, 202614
Nov 25, 202614
Nov 24, 20267
Nov 23, 20267
Nov 22, 20268
Nov 21, 20266
Nov 20, 20266
Nov 19, 202611
Nov 18, 202611
Nov 17, 202612
Nov 16, 202612
Nov 15, 202613
Nov 14, 202612
Nov 13, 202612
Nov 12, 20268
Nov 11, 20268
Nov 10, 20267
Nov 9, 20267
Nov 8, 20265
Nov 7, 20265
Nov 6, 20262
Nov 5, 20261
Nov 4, 20261
Nov 3, 20261
Nov 2, 20261
Nov 1, 20260
Oct 31, 20261
Oct 30, 20261
Oct 29, 20261
Oct 28, 20261
Oct 27, 20261
Oct 26, 20263
Oct 25, 20263
Oct 24, 20262
Oct 23, 20262
Oct 22, 20263
Oct 21, 20263
Oct 20, 20263
Oct 19, 20261
Oct 18, 20261
Oct 17, 20261
Oct 16, 20262
Oct 15, 20262
Oct 14, 20262
Oct 13, 20264
Oct 12, 20264
Oct 11, 20265
Oct 10, 20265
Oct 9, 20264
Oct 8, 20265
Oct 7, 20265
Oct 6, 20265
Oct 5, 20267
Oct 4, 20266
Oct 3, 20266
Oct 2, 20268
Oct 1, 20266
Sep 30, 20266
Sep 29, 20265
Sep 28, 20265
Sep 27, 20265
Sep 26, 20268
Sep 25, 20266
Sep 24, 20268
Sep 23, 20268
Sep 22, 20268
Sep 21, 20266
Sep 20, 20267
Sep 19, 20264
Sep 18, 20264
Sep 17, 20263
Sep 16, 20264
Sep 15, 20264
Sep 14, 20266
Sep 13, 20265
Sep 12, 20265
Sep 11, 20265
Sep 10, 20265
Sep 9, 20265
Sep 8, 20265
Sep 7, 20266
Sep 6, 20266

Each point is npm's rolling 7-day download count.

Health Score

38/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/729940459-root.svg)](https://payloaddirectory.dev/plugins/729940459-root)
HTML
<a href="https://payloaddirectory.dev/plugins/729940459-root"><img src="https://payloaddirectory.dev/badge/729940459-root.svg" alt="Payload Directory"></a>
Updated Dec 10, 2023Created Dec 10, 2023Published Dec 10, 2023

README

Payload Code Block Feature

image

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.

Similar plugins