createEditor
SourcecreateEditor(options: CreateEditorOptions) => ReturnType<typeof lexicalEditor>Exported from: @nexload-sdk/payload-editor
Public function exported by @nexload-sdk/payload-editor.
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.
createEditor(options) validates and merges one definition, creates managed feature providers in deterministic order, appends native extensions, and returns Payload’s Lexical editor provider.
defineEditorPreset(options) validates and snapshots a reusable feature definition. Only presets created by this function or built-in preset names are accepted.
PayloadEditorConfigError extends TypeError with stable code, exact path, and optional hint.
The root exports the option, preset, feature, heading, link, upload, relationship, and native-provider types. EditorPresetName is the five-name built-in union. FeatureOption<T> represents boolean | options.
PAYLOAD_EDITOR_DEFINITION_REQUIREDPAYLOAD_EDITOR_UNKNOWN_PRESETPAYLOAD_EDITOR_UNKNOWN_FEATUREPAYLOAD_EDITOR_INVALID_FEATURE_OPTIONSPAYLOAD_EDITOR_INVALID_HEADING_SIZESPAYLOAD_EDITOR_INVALID_COLLECTIONSPAYLOAD_EDITOR_INVALID_MAX_DEPTHPAYLOAD_EDITOR_INVALID_EXTENSIONPAYLOAD_EDITOR_DUPLICATE_FEATUREAll are configuration-time errors. Do not expose their messages directly as end-user content.
See the root entrypoint for the live export surface.