Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Type Alias DocumentEmbedHandler

    DocumentEmbedHandler: (
        doc: Document,
        content: HTMLElement | null,
        config: DocumentHTMLEmbedConfig,
        options?: EnrichmentOptions,
    ) => Promise<HTMLElement | HTMLCollection | null>

    Type Declaration

      • (
            doc: Document,
            content: HTMLElement | null,
            config: DocumentHTMLEmbedConfig,
            options?: EnrichmentOptions,
        ): Promise<HTMLElement | HTMLCollection | null>
      • Parameters

        • doc: Document

          The Document being embedded.

        • content: HTMLElement | null

          The candidate element for embedding.

        • config: DocumentHTMLEmbedConfig

          Configuration for embedding behavior.

        • Optionaloptions: EnrichmentOptions

          The original enrichment options for cases where the Document embed content also contains text that must be enriched.

        Returns Promise<HTMLElement | HTMLCollection | null>