@twip/web
    Preparing search index...

    Interface TwipEvents

    Every event of editor.on(type, listener), keyed by type.

    interface TwipEvents {
        announcement: { kind: AnnouncementKind; text: string };
        balloonsLaidOut: BalloonPlacement[];
        commentAnchors: CommentAnchor[];
        commentsChanged: {};
        contextMenu: ContextMenuEvent;
        dialogRequested: { kind: DialogKind };
        documentChanged: TransactionRecord;
        editingTargetChanged: EditingTarget;
        editRefused: {
            element?: ElementId;
            reason: { kind: "subTemplate"; name: string } | { kind: "locked" };
        };
        elementActivated: { id: ElementId };
        elementClick: ElementClick;
        elementHover: ElementHover | null;
        elementsChanged: {
            added: ElementInfo[];
            changed: ElementInfo[];
            removed: ElementId[];
        };
        elementSelect: ElementSelection
        | null;
        error: EditorError;
        fieldsUpdateRequested: {
            fields: { code: string; id: ElementId }[];
            token: number;
        };
        fontsChanged: FontsState;
        gesture: GestureEvent;
        hostCommand: { command: HostCommand };
        linkActivated: { address: string; via: "ctrlClick" | "click" };
        pictureControlActivated: { element: ElementId };
        popoverClosed: {};
        popoverRequested: Popover;
        revisionsChanged: {};
        rulerChanged: RulerView;
        selectionChanged: SelectionSummary;
        shortcut: { id: string };
        tooltip: Tooltip | null;
        warning: Warning;
        wordAdded: { language: string; word: string };
    }
    Index
    announcement: { kind: AnnouncementKind; text: string }

    What the editor said to screen readers, and what it is about (when one change says several things, the first).

    balloonsLaidOut: BalloonPlacement[]

    Mounted only: the SDK placed the attached balloons.

    commentAnchors: CommentAnchor[]

    Mounted only: the visible comments, after layout, zoom or scroll.

    commentsChanged: {}

    The comments changed.

    contextMenu: ContextMenuEvent

    The user asked for a context menu.

    dialogRequested: { kind: DialogKind }

    A key or gesture asked for a dialog.

    documentChanged: TransactionRecord

    A transaction committed: exactly one per commit, in order, never coalesced.

    editingTargetChanged: EditingTarget

    The editor switched between the template and a sub-template, or between sub-templates: where it is now.

    editRefused: {
        element?: ElementId;
        reason: { kind: "subTemplate"; name: string } | { kind: "locked" };
    }

    Typing, pasting or dropping was refused: into a sub-template's body shown in place of its reference (edit the sub-template instead), or into a locked control.

    elementActivated: { id: ElementId }

    Design mode: Enter or double-click on an element.

    elementClick: ElementClick

    Mounted only: an element was clicked, after the editor's own action for the press (a checkbox toggles first).

    elementHover: ElementHover | null

    Mounted only: the pointer moved onto another field or content control, or the hovered one's boxes moved (at most once a frame); null when it left. Not sent while moving within one element, or during a drag.

    elementsChanged: {
        added: ElementInfo[];
        changed: ElementInfo[];
        removed: ElementId[];
    }

    Elements were added, removed or changed.

    elementSelect: ElementSelection | null

    Mounted only: the selection moved into another element, or its boxes moved (at most once a frame); null when it is in none.

    A listener's exception, or a fault (then fatal is true).

    fieldsUpdateRequested: {
        fields: { code: string; id: ElementId }[];
        token: number;
    }

    Fields the application computes need results: answer with setFieldResults.

    fontsChanged: FontsState

    The document's fonts that draw with a stand-in (being fetched, or nothing provided them), or its characters no font has, changed. Carries the whole report, as state.fonts has it.

    gesture: GestureEvent

    Mounted only: a gesture bound to 'emit'.

    hostCommand: { command: HostCommand }

    A key the application owns was pressed.

    linkActivated: { address: string; via: "ctrlClick" | "click" }

    A link was activated: a click when read only, Ctrl+click otherwise.

    pictureControlActivated: { element: ElementId }

    A picture control was activated: clicked while unfilled, double-clicked or given Enter in editing and read-only modes, or named by activatePictureControl.

    popoverClosed: {}

    The engine dismissed the open popover: Esc, a press elsewhere, or its target gone.

    popoverRequested: Popover

    A click or command asked for a popover by its anchor; opening one closes the one open. A mounted editor shows its own unless the application listens.

    revisionsChanged: {}

    The tracked revisions changed.

    rulerChanged: RulerView

    Mounted only: the rulers changed; coalesced per frame.

    selectionChanged: SelectionSummary

    The selection changed; coalesced per frame.

    shortcut: { id: string }

    An application shortcut from shortcuts.register was pressed.

    tooltip: Tooltip | null

    Mounted only: hover over a link, element mark, revision or comment, or null when it ends.

    warning: Warning

    A fidelity warning outside an operation.

    wordAdded: { language: string; word: string }

    A word was added to the user's dictionary: persist it.