TinyMCE MultiCloud Plugin - v0.1.1
    Preparing search index...

    Interface PickerMessage

    Message shape used by custom picker pages to communicate results back to the host page via window.postMessage. The host page (plugin) only accepts messages where source equals "tinymce-multicloud-plugin" to prevent unrelated message injection.

    // Inside a custom picker page, after the user selects a file:
    window.opener.postMessage({
    source: "tinymce-multicloud-plugin",
    type: "picked",
    providerId: "myProvider",
    payload: { item: { id: "1", name: "file.pdf", url: "https://..." } },
    }, "*");

    Salvatore Callari Callari@WaXCode.net

    interface PickerMessage {
        payload?: PickerResult;
        providerId: CloudProviderId;
        source: "tinymce-multicloud-plugin";
        type: "picked" | "cancelled";
    }
    Index

    Properties

    payload?: PickerResult

    The picker result. Required when type is "picked"; omitted when "cancelled".

    providerId: CloudProviderId

    The provider ID this message originated from. Used to match against the awaiting listener.

    source: "tinymce-multicloud-plugin"

    Fixed discriminator. Messages without this exact value are silently ignored.

    type: "picked" | "cancelled"

    "picked" when a file was selected; "cancelled" when the user dismissed the picker.