UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

41 lines (40 loc) 1.24 kB
import { CKCdnResourcesAdvancedPack } from '../../cdn/utils/loadCKCdnResourcesPack.js'; import { createCKBoxCdnUrl, CKBoxCdnVersion } from './createCKBoxCdnUrl.js'; import './globals.js'; /** * Creates a pack of resources for the base CKBox bundle. * * @param config The configuration of the CKBox bundle pack. * @returns A pack of resources for the base CKBox bundle. * @example * ```ts * const { CKBox } = await loadCKCdnResourcesPack( * createCKBoxCdnBundlePack( { * version: '2.5.1', * theme: 'lark' * } ) * ); * ``` */ export declare function createCKBoxBundlePack({ version, theme, translations, createCustomCdnUrl }: CKBoxCdnBundlePackConfig): CKCdnResourcesAdvancedPack<Window['CKBox']>; /** * Configuration of the base CKEditor bundle pack. */ export type CKBoxCdnBundlePackConfig = { /** * The version of the base CKEditor bundle. */ version: CKBoxCdnVersion; /** * The list of translations to load. */ translations?: Array<string>; /** * The theme of the CKBox bundle. Default is 'lark'. */ theme?: string | null; /** * Function that creates a custom URL for the CKBox bundle. */ createCustomCdnUrl?: typeof createCKBoxCdnUrl; };