Formwright
    Preparing search index...

    Interface RichTextControlSignature

    interface RichTextControlSignature {
        Args: ControlWiring<RichTextValue> & object & {
            extensions?: Extensions;
            output?: "html" | "json";
            starterKit?: Partial<StarterKitOptions>;
            toolbar?: false | readonly RichTextTool[];
            toolbarLabel?: string;
            toolLabels?: Partial<Record<RichTextTool, string>>;
        };
        Element: HTMLDivElement;
    }
    Index
    Args: ControlWiring<RichTextValue> & object & {
        extensions?: Extensions;
        output?: "html" | "json";
        starterKit?: Partial<StarterKitOptions>;
        toolbar?: false | readonly RichTextTool[];
        toolbarLabel?: string;
        toolLabels?: Partial<Record<RichTextTool, string>>;
    }

    Type Declaration

    • Optionalextensions?: Extensions

      More Tiptap extensions, added after StarterKit. Read once, when the editor is created.

    • Optionaloutput?: "html" | "json"

      html (default) stores an HTML string; json stores Tiptap's JSON document.

    • OptionalstarterKit?: Partial<StarterKitOptions>

      StarterKit's options, e.g. { heading: { levels: [2, 3] } }. Read once.

    • Optionaltoolbar?: false | readonly RichTextTool[]

      The buttons to show, in groups as listed; false hides the toolbar.

    • OptionaltoolbarLabel?: string

      The toolbar's accessible name. Default "Formatting".

    • OptionaltoolLabels?: Partial<Record<RichTextTool, string>>

      Button names (their title and accessible name), by tool: { bold: 'Strong' }.

    Element: HTMLDivElement

    The wrapper around the toolbar and the editor.