UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

61 lines (60 loc) 1.57 kB
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * Checks features supported by currently installed version of the editor. * * @returns Object containing flags that indicate which features are supported. */ export declare function getInstalledCKBaseFeatures(): SupportedCKBaseFeatures; export type SupportedCKBaseFeatures = { /** * Flag that indicates if editor supports `roots` / `root` config entries. * * Older versions: * * ```ts * MultirootEditor.create( sourceElementOrData, { * rootsAttributes: { * "custom-root": { ... } * } * // ... * } ) * ``` * * Newer versions: * * ```ts * MultirootEditor.create( { * roots: { * "custom-root": { modelAttributes: { ... } } * } * // ... * } ) * ``` * * See more: https://github.com/ckeditor/ckeditor5/issues/19885 */ rootsConfigEntry: boolean; /** * Flag that indicates if editor no longer supports `sourceElementOrData` as first parameter * in its initializer. * * Older versions: * * ```ts * ClassicEditor.create( document.querySelector( '#editor' ), { ... } ) * ``` * * Newer versions: * * ```ts * ClassicEditor.create( { * attachTo: document.querySelector( '#editor' ), * // ... * } ) * ``` */ elementConfigAttachment: boolean; };