Trevixal API
    Preparing search index...

    Interface BubbleMenuOptions

    The classic bubble: the handful of things you want to do to text you have just selected, put where you are already looking instead of at the top of the window.

    It never takes focus: every control cancels its own mousedown, because the selection it acts on is exactly what a click would otherwise destroy.

    interface BubbleMenuOptions {
        container?: HTMLElement;
        gap?: number;
        shouldShow?: (editor: Editor) => boolean;
        toolbar?: ToolbarOptions;
    }
    Index
    container?: HTMLElement

    Where the menu is appended. Must be a positioned ancestor of the editing surface, or share its offset parent: the menu is placed absolutely within it. Defaults to the surface's own parent.

    gap?: number

    Gap between the selection and the bubble, in px. Defaults to 8.

    shouldShow?: (editor: Editor) => boolean

    Whether to show at all, for hosts with their own rule. The default shows for any non-empty selection in an editable surface whose block takes marks, which is to say, never over a code block, where bolding text would be meaningless.

    toolbar?: ToolbarOptions

    Passed straight to the toolbar inside the bubble. Defaults to the six inline actions below; pass items or groupNames for something else.