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

    Interface RichTextEditorContext

    Context object passed to strategy methods so they can interact with the editor's DOM and state without holding a reference to the component itself.

    This decouples strategies from the Angular component class while giving them everything they need.

    interface RichTextEditorContext {
        editorEl: HTMLDivElement;
        hostEl: HTMLElement;
        placeholders: readonly RichTextPlaceholder[];
        sanitise: boolean;
        restoreFocus(): void;
    }
    Index

    Properties

    editorEl: HTMLDivElement

    The contenteditable <div> (WYSIWYG area).

    hostEl: HTMLElement

    The host element of the component.

    placeholders: readonly RichTextPlaceholder[]

    Current placeholder definitions.

    sanitise: boolean

    Whether HTML sanitisation is enabled.

    Methods

    • Restores focus to the editor element.

      Returns void