Trevixal API
    Preparing search index...

    Interface EmbedCommands

    Media and embed commands, from @trevixal/extension-embed.

    interface EmbedCommands {
        insertAudio?: (src: string) => Command;
        insertEmbed?: (url: string) => Command;
        insertIframe?: (src: string, title?: string) => Command;
        insertLinkCard?: (attrs: { href: string; title?: string }) => Command;
        insertVideo?: (src: string) => Command;
        pickAttachment?: () => void;
        recordAudio?: () => void;
        setVideoChapters?: (text: string | null) => Command;
        videoChaptersAt?: (state: EditorState) => string | null;
    }
    Index
    insertAudio?: (src: string) => Command
    insertEmbed?: (url: string) => Command
    insertIframe?: (src: string, title?: string) => Command
    insertLinkCard?: (attrs: { href: string; title?: string }) => Command
    insertVideo?: (src: string) => Command
    pickAttachment?: () => void

    Opens a file picker; attachments upload rather than being typed in.

    recordAudio?: () => void

    Record from the microphone and insert the recording with its waveform.

    setVideoChapters?: (text: string | null) => Command

    The selected video's chapters, one a line (1:30 Setting up); 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.