Provides a createEditor function that builds a Lexical editor configuration for Payload 3 from named presets or an explicit feature definition. Features can be toggled or tuned with options, and native Payload Lexical features can be appended as extensions. It is ESM-only, server and config safe, and requires Payload 3.68.5 or newer below version 4.
Semantic, deterministic Payload Lexical editor configuration.
Installation
npm i @nexload-sdk/payload-editor2
Stars
0
Forks
0
Open Issues
Today
Last Updated
4
Weekly Downloads
v1.1.0
npm Version
56.7 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Collecting since Oct 22 — 1 daily snapshot so far.
Shared by 4 plugins in gecut/nexload-sdk.
Trends appear after 7 days of data. Collecting since Oct 22 — 1 daily snapshot so far.
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/1086380959-payload-editor)<a href="https://payloaddirectory.dev/plugins/1086380959-payload-editor"><img src="https://payloaddirectory.dev/badge/1086380959-payload-editor.svg" alt="Payload Directory"></a>README
Semantic, deterministic Payload Lexical editor configuration for Payload 3.
pnpm add @nexload-sdk/payload-editor payload @payloadcms/richtext-lexical
Keep payload and every @payloadcms/* package on the exact same version. Supported peer range: >=3.68.5 <4.
import { createEditor } from "@nexload-sdk/payload-editor";
export const editor = createEditor({
preset: "structured-content",
features: {
heading: { sizes: ["h2", "h3"] },
upload: { allowedCollections: ["media"], maxDepth: 1 },
},
});
There is no implicit default. Supply a preset or an explicit features definition.
import { createEditor, defineEditorPreset } from "@nexload-sdk/payload-editor";
const landingContent = defineEditorPreset({
features: {
paragraph: true,
heading: { sizes: ["h2", "h3"] },
bold: true,
link: true,
inlineToolbar: true,
},
});
export const editor = createEditor({ preset: landingContent });
import { BlocksFeature } from "@payloadcms/richtext-lexical";
import { createEditor } from "@nexload-sdk/payload-editor";
export const editor = createEditor({
preset: "article",
extendFeatures: [BlocksFeature({ blocks: [Callout, Gallery] })],
});
Extensions append after managed features. Duplicate feature keys fail synchronously. Disable a managed feature before supplying a native replacement.
compactstandardstructured-contentarticleproduct-descriptionPreset membership and defaults are versioned contracts. true resets a feature to Nexload adapter defaults, false disables it, and option objects shallow-merge with array replacement.
maxDepth: 1.inlineCode is the managed inline format.See the canonical documentation for feature mappings, presets, extensions, errors, and migration guidance.
fullscreen editor
Fullscreen mode for the Payload Lexical rich text editor
81371/wk114v3
payload paste as markdown
Lexical editor feature for pasting raw Markdown through a toolbar button, slash command, or drawer
6211/wk0v3
richtext
Rich-text child block, default Lexical editor preset and JSX renderer for Atomic Payload
611/wk37v3
payload lexical typography
Lexical editor features for text color, font size, letter spacing, line height and font family
571.1k/wk109v?
payloadcms lexical ext
Lexical editor features for text color, highlight, block background and YouTube or Vimeo embeds
471.5k/wk73v?
payload richtext lexical react native
React Native renderer for serialized Lexical rich text content from Payload CMS
442/wk0v3