@ckeditor/ckeditor5-integrations-common
Version:
This package implements common utility modules for integration projects.
25 lines (24 loc) • 819 B
TypeScript
import { CKCdnVersion } from './isCKCdnVersion.js';
/**
* The URL of the CKEditor CDN.
*/
export declare const CK_CDN_URL = "https://cdn.ckeditor.com";
/**
* Creates a URL to a file on the CKEditor CDN.
*
* @param bundle The name of the bundle.
* @param file The name of the file.
* @param version The version of the file.
* @returns A function that accepts the version of the file and returns the URL.
*
* ```ts
* const url = createCKCdnUrl( 'classic', 'ckeditor.js', '27.0.0' );
*
* expect( url ).to.be.equal( 'https://cdn.ckeditor.com/classic/27.0.0/ckeditor.js' );
* ```
*/
export declare function createCKCdnUrl(bundle: string, file: string, version: CKCdnVersion): string;
/**
* A function that creates a URL to a file on the CKEditor CDN.
*/
export type CKCdnUrlCreator = typeof createCKCdnUrl;