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

    Interface GoogleDriveProviderConfig

    Configuration for the Google Drive provider. Requires both clientId (OAuth 2.0) and apiKey (Picker/Drive API key) from Google Cloud Console.

    Salvatore Callari Callari@WaXCode.net

    interface GoogleDriveProviderConfig {
        apiKey: string;
        appId?: string;
        clientId: string;
        enabled?: boolean;
        headers?: Record<string, string>;
        pickerLocale?: string;
        pickerUrl?: string;
        popupFeatures?: string;
        scopes?: string[];
        timeoutMs?: number;
        token?: string;
        viewMimeTypes?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiKey: string

    Google API key used to initialise the Picker API and Drive REST client.

    appId?: string

    Google Drive app ID (numeric), used for scoped Shared Drive access. Optional.

    clientId: string

    Google OAuth 2.0 client ID. Must be configured in Google Cloud Console with your deployment origin.

    enabled?: boolean

    Set to false to completely disable this provider. Disabled providers are excluded from the picker dialog. Defaults to true.

    headers?: Record<string, string>

    Extra HTTP headers forwarded to provider API calls (e.g. for WebDAV requests).

    pickerLocale?: string

    BCP-47 locale tag passed to the Picker UI (e.g. "de", "it"). Defaults to "en".

    pickerUrl?: string

    URL of a custom picker page that communicates back via postMessage using the PickerMessage contract. When set, the built-in SDK flow is bypassed entirely and this URL is opened in a popup window.

    popupFeatures?: string

    Window features string passed to window.open for the picker popup (e.g. "width=1120,height=760").

    scopes?: string[]

    OAuth scopes to request. Defaults to drive.readonly + drive.file.

    timeoutMs?: number

    Per-provider picker timeout in milliseconds. Overrides MultiCloudPluginOptions.popupTimeoutMs.

    token?: string

    Pre-obtained access token. When supplied, the provider may skip the interactive auth step.

    viewMimeTypes?: string

    Comma-separated MIME type filter applied to the Picker DocsView.