Trevixal API
    Preparing search index...

    Interface EditorUI

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

    The extra carets; bind addNextMatch to a key.

    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.

    macros: Macros

    The macro recorder behind Tools ▸ Macro; bind its play to a key.

    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

    • Open the Go to dialog; bind it to a key.

      Returns void

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

      Returns void

    • Show the chrome in another language: every menu and toolbar label from messages, lang set for it, and a right-to-left language mirroring it.

      Parameters

      Returns void

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

      Parameters

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

      Returns void