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;
        setVideoChapters: (text: string | null) => Command;
        videoChaptersAt: (state: EditorState) => string | null;
    }
    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
    setVideoChapters: (text: string | null) => Command

    The selected video's chapters, one a line; empty text takes them off.

    videoChaptersAt: (state: EditorState) => string | null

    The selected video's chapters, for the dialog; null without a video selected. A reader.