@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Interface RichTextTemplateBlockUiProvider

    UI metadata for editing a registered XML template block in the rich-text editor.

    interface RichTextTemplateBlockUiProvider {
        attributes?: readonly RichTextTemplateBlockAttributeDefinition[];
        display: RichTextTemplateBlockDisplay;
        label: string;
        name: string;
        selfClosing: boolean;
        formatLabel?(attributes: Readonly<Record<string, string>>): string;
    }
    Index

    Properties

    Attributes available for end-user editing in the block property sheet.

    Whether the editor should render this block inline or as a block container.

    label: string

    Human-readable label shown in chips and generic block headers.

    name: string

    XML block name handled by this UI provider.

    selfClosing: boolean

    Whether the block is self-closing in the editor surface.

    Methods

    • Optional label formatter for a specific block instance.

      Parameters

      • attributes: Readonly<Record<string, string>>

      Returns string