UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

14 lines (13 loc) 820 B
import { EditorConfig } from 'ckeditor5'; import { EditorRelaxedConfig } from '../types/EditorRelaxedConfig.js'; /** * Assigns the `attributes` property to the correct field in the editor configuration object, depending on the loaded CKEditor version. * The version compatibility matrix is the same as in `assignDataPropToSingleRootEditorConfig`. * * It handles scenario when legacy `rootsAttributes` is still passed to the configuration and maps it to `config.roots`. * * @param attributes The editor roots attributes. * @param config The editor configuration. * @returns The editor configuration with assigned `attributes` property. */ export declare function assignAttributesPropToMultiRootEditorConfig(attributes: Record<string, Record<string, any>> | undefined, config: EditorRelaxedConfig): EditorConfig;