Trevixal API
    Preparing search index...

    Interface EmbedUICommands

    The command bundle @trevixal/ui expects, so the UI package can offer embeds without importing this one:

    createEditorUI(editor, { container, embedCommands: embedUICommands(options) })
    

    Pass the same options the schema was created with, so the toolbar's allowlist matches the parser's.

    interface EmbedUICommands {
        insertAudio: (src: string) => Command;
        insertEmbed: (url: string) => Command;
        insertIframe: (src: string, title?: string) => Command;
        insertLinkCard: (attrs: LinkCardAttrs) => Command;
        insertVideo: (src: string) => Command;
    }
    Index
    insertAudio: (src: string) => Command
    insertEmbed: (url: string) => Command

    Auto-detect: YouTube/Vimeo player, direct media, or an allowlisted iframe.

    insertIframe: (src: string, title?: string) => Command
    insertLinkCard: (attrs: LinkCardAttrs) => Command
    insertVideo: (src: string) => Command