A client-side Lexical editor feature for Payload 3.x that lets authors paste raw Markdown into rich-text fields. It is added to the features array of lexicalEditor, and the import map must be regenerated afterwards. The Markdown is converted with Lexical's markdown transformers and inserted at the cursor position. No backend code is required.
Payload CMS Lexical editor feature for pasting Markdown via a toolbar button, slash command, or drawer.
Installation
npm i payload-paste-as-markdown0
Stars
0
Forks
0
Open Issues
1 months ago
Last Updated
0
Weekly Downloads
v0.1.2
npm Version
20.0 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Trends appear after 7 days of data. Daily snapshots have not started yet.
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/1346243759-root)<a href="https://payloaddirectory.dev/plugins/1346243759-root"><img src="https://payloaddirectory.dev/badge/1346243759-root.svg" alt="Payload Directory"></a>README

A reusable Payload CMS 3.x Lexical editor feature that lets authors paste raw Markdown into the rich-text editor via a toolbar button, slash command, or keyboard-free drawer.
If you're browsing this repository on GitHub, please tag it with the
payload-plugintopic so it surfaces in Payload community plugin listings.
This is a Lexical editor feature rather than a top-level buildConfig plugin, so it is configured inside lexicalEditor({ features: [...] }).
/markdown, /md, /paste)npm install payload-paste-as-markdown
# or
pnpm add payload-paste-as-markdown
# or
yarn add payload-paste-as-markdown
This package expects payload, @payloadcms/richtext-lexical, @payloadcms/ui, react, and react-dom to already be installed in your project.
Import the server feature and add it to the features array of any lexicalEditor:
import { MarkdownPasteFeature } from 'payload-paste-as-markdown'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import type { CollectionConfig } from 'payload'
export const Posts: CollectionConfig = {
slug: 'posts',
fields: [
{
name: 'content',
type: 'richText',
editor: lexicalEditor({
features: ({ defaultFeatures }) => [
...defaultFeatures,
MarkdownPasteFeature(),
],
}),
},
],
}
After installing, regenerate Payload's import map:
npx payload generate:importmap
payload ^3.0.0@payloadcms/richtext-lexical ^3.0.0@payloadcms/ui ^3.0.0react ^19.0.0react-dom ^19.0.0MIT Sponsored by: Onion Creative
fullscreen editor
Fullscreen mode for the Payload Lexical rich text editor
680/wk114v3
richtext
Rich-text child block, default Lexical editor preset and JSX renderer for Atomic Payload
610/wk37v3
payload lexical typography
Lexical editor features for text color, font size, letter spacing, line height and font family
571.1k/wk109v?
payload editor
Preset-based, deterministic configuration builder for the Payload Lexical rich text editor
564/wk2v3
payload richtext lexical react native
React Native renderer for serialized Lexical rich text content from Payload CMS
420/wk0v3
payload code block feature
Adds a code block feature to the Payload Lexical editor using @lexical/code
350/wk11v2