createEditor
SourcecreateEditor(options: CreateEditorOptions) => ReturnType<typeof lexicalEditor>Exported from: @nexload-sdk/payload-editor
Public function exported by @nexload-sdk/payload-editor.
The complete public API symbol inventory is generated automatically from package source exports:
createEditorcreateEditor(options: CreateEditorOptions) => ReturnType<typeof lexicalEditor>Exported from: @nexload-sdk/payload-editor
Public function exported by @nexload-sdk/payload-editor.
defineEditorPresetdefineEditorPreset(options: DefineEditorPresetOptions) => EditorPresetExported from: @nexload-sdk/payload-editor
Public function exported by @nexload-sdk/payload-editor.
PayloadEditorConfigErrorclass PayloadEditorConfigErrorExported from: @nexload-sdk/payload-editor
Public classe exported by @nexload-sdk/payload-editor.
DefineEditorPresetOptionsinterface DefineEditorPresetOptions { readonly features: Readonly<EditorFeatureConfig> }Exported from: @nexload-sdk/payload-editor
Public interface exported by @nexload-sdk/payload-editor.
EditorFeatureConfiginterface EditorFeatureConfig {
paragraph?: FeatureOption
heading?: FeatureOption<HeadingOptions>
bold?: FeatureOption
italic?: FeatureOption
underline?: FeatureOption
strikethrough?: FeatureOption
inlineCode?: FeatureOption
link?: FeatureOption<LinkOptions>
unorderedList?: FeatureOption
orderedList?: FeatureOption
blockquote?: FeatureOption
horizontalRule?: FeatureOption
upload?: FeatureOption<UploadOptions>
relationship?: FeatureOption<RelationshipOptions>
inlineToolbar?: FeatureOption
fixedToolbar?: FeatureOption
}Exported from: @nexload-sdk/payload-editor
Public interface exported by @nexload-sdk/payload-editor.
EditorPresetinterface EditorPreset {
readonly [editorPresetBrand]: true
readonly features: Readonly<EditorFeatureConfig>
}Exported from: @nexload-sdk/payload-editor
Public interface exported by @nexload-sdk/payload-editor.
HeadingOptionsinterface HeadingOptions { sizes?: readonly HeadingSize[] }Exported from: @nexload-sdk/payload-editor
Public interface exported by @nexload-sdk/payload-editor.
LinkOptionsinterface LinkOptions extends RelationalOptions<CollectionSlug> { autoLink?: boolean }Exported from: @nexload-sdk/payload-editor
Public interface exported by @nexload-sdk/payload-editor.
CreateEditorOptionstype CreateEditorOptions = CommonEditorOptions & (
| {
readonly preset: EditorPresetName | EditorPreset
readonly features?: Readonly<EditorFeatureConfig>
}
| {
readonly preset?: never
readonly features: Readonly<EditorFeatureConfig>
}
);Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
EditorPresetNametype EditorPresetName
= | "compact"
| "standard"
| "structured-content"
| "article"
| "product-description";Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
FeatureOptiontype FeatureOption<TOptions = never> = [TOptions] extends [never]
? boolean
: boolean | Readonly<TOptions>;Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
HeadingSizetype HeadingSize = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
NativeEditorFeaturetype NativeEditorFeature = FeatureProviderServer<any, any, any>;Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
PayloadEditorConfigErrorCodetype PayloadEditorConfigErrorCode
= | "PAYLOAD_EDITOR_DEFINITION_REQUIRED"
| "PAYLOAD_EDITOR_UNKNOWN_PRESET"
| "PAYLOAD_EDITOR_UNKNOWN_FEATURE"
| "PAYLOAD_EDITOR_INVALID_FEATURE_OPTIONS"
| "PAYLOAD_EDITOR_INVALID_HEADING_SIZES"
| "PAYLOAD_EDITOR_INVALID_COLLECTIONS"
| "PAYLOAD_EDITOR_INVALID_MAX_DEPTH"
| "PAYLOAD_EDITOR_INVALID_EXTENSION"
| "PAYLOAD_EDITOR_DUPLICATE_FEATURE";Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
RelationshipOptionstype RelationshipOptions = RelationalOptions<CollectionSlug>;Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
UploadOptionstype UploadOptions = RelationalOptions<UploadCollectionSlug>;Exported from: @nexload-sdk/payload-editor
Public type exported by @nexload-sdk/payload-editor.
| Function | Return Type | Description |
|---|---|---|
createEditor(options) | RichTextAdapterProvider | Compiles an explicit feature definition into Payload’s official Lexical editor provider. |
defineEditorPreset(options) | EditorPreset | Defines an immutable, reusable editor preset for team-wide policy sharing. |
| Runtime / Engine | Version Requirement | Verification Status |
|---|---|---|
| Node.js | >=20.9.0 | Verified on Node 20 & 22 |
| Payload CMS | >=3.85.0 <4.0.0 | Verified on Payload 3.86.0 |
@payloadcms/richtext-lexical | >=3.85.0 <4.0.0 | Verified on Lexical 3.86.0 |
| Module Format | ESM only | Server and configuration safe |
| Side Effects | false | Fully tree-shakeable |