Trevixal API
    Preparing search index...

    Interface LinkPopoverOptions

    The link editor, as a popover at the link instead of a modal over the page.

    A modal is the right shape for creating a link. There is nothing to point at yet. It is the wrong shape for editing one: the dialog covers the sentence the link sits in, and the thing you are checking is whether the href matches the words around it.

    interface LinkPopoverOptions {
        container?: HTMLElement;
        gap?: number;
        openURL?: (href: string) => void;
    }
    Index
    container?: HTMLElement

    Where the popover is appended. Must be a positioned ancestor of the editing surface, or share its offset parent. Defaults to the surface's own parent.

    gap?: number

    Gap between the link and the popover, in px. Defaults to 8.

    openURL?: (href: string) => void

    Open a URL. Defaults to a new tab with noopener,noreferrer. A link in a document is untrusted content, and the opener reference is what lets a hostile page rewrite the one that opened it.