Trevixal API
    Preparing search index...

    Interface EditorUI

    interface EditorUI {
        element: HTMLElement;
        findReplace: FindReplace | null;
        menubar: Menubar | null;
        menus: readonly Menu[];
        statusBar: StatusBar | null;
        toolbar: Toolbar;
        destroy(): void;
        openLinkDialog(): void;
        setShortcutLabels(
            labels: Readonly<Record<string, string | null>> | undefined,
        ): void;
    }
    Index
    element: HTMLElement
    findReplace: FindReplace | null

    The find & replace bar, created on first use by the Tools menu entry and available here for a host that wants to open it from its own shortcut.

    menubar: Menubar | null
    menus: readonly Menu[]

    The menus as actually wired: entries the host never supplied an action for are already gone. paletteCommandsFromMenus turns these into command-palette entries.

    statusBar: StatusBar | null
    toolbar: Toolbar
    • Returns void

    • The link dialog the toolbar and Insert ▸ Link open; bind it to a shortcut.

      Returns void

    • Re-print the menus' shortcuts, e.g. after the user rebinds one.

      Parameters

      • labels: Readonly<Record<string, string | null>> | undefined

      Returns void