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

    Interface RichTextPlaceholder

    A placeholder definition that can be inserted into the editor.

    Placeholders render as non-editable inline chips inside the rich text content and are serialised as {{key}} tokens in the HTML output so a downstream template engine can resolve them.

    const placeholders: RichTextPlaceholder[] = [
    { key: 'firstName', label: 'First Name', category: 'Contact' },
    { key: 'companyName', label: 'Company', category: 'Account' },
    ];
    interface RichTextPlaceholder {
        category?: string;
        key: string;
        label: string;
    }
    Index

    Properties

    Properties

    category?: string

    Optional grouping category for the placeholder picker.

    key: string

    Unique token key, e.g. 'firstName'.

    label: string

    Human-readable label shown inside the chip, e.g. 'First Name'.