Skip to content

Guides

  • compact: short formatted text with inline tools.
  • standard: general rich text with lists, blockquote, and fixed toolbar.
  • structured-content: headings, horizontal rule, uploads, and richer formatting.
  • article: structured content plus inline code and relationships.
  • product-description: constrained headings, lists, links, and uploads.

Treat these as contracts. Override only the differences your content model requires.

import {
createEditor,
defineEditorPreset,
} from "@nexload-sdk/payload-editor";
const landingPage = defineEditorPreset({
features: {
paragraph: true,
heading: { sizes: ["h2", "h3"] },
bold: true,
link: { autoLink: true, maxDepth: 1 },
inlineToolbar: true,
},
});
export const editor = createEditor({ preset: landingPage });
import { BlocksFeature } from "@payloadcms/richtext-lexical";
import { createEditor } from "@nexload-sdk/payload-editor";
createEditor({
preset: "article",
extendFeatures: [BlocksFeature({ blocks: [Callout, Gallery] })],
});

Extensions append after managed features. If a native provider replaces a managed feature, first set the managed key to false.

Set allowedCollections and maxDepth on link, upload, or relationship. These options constrain editor feature configuration; Payload access control still decides what the user may read or select.