@ckeditor/ckeditor5-integrations-common
Version:
This package implements common utility modules for integration projects.
12 lines (11 loc) • 670 B
TypeScript
import { EditorRelaxedConstructor } from '../types/EditorRelaxedConstructor.js';
import { EditorRelaxedConfig } from '../types/EditorRelaxedConfig.js';
/**
* Assigns a DOM element to the editor configuration in a way that is compatible with the specific editor type.
*
* @param Editor Constructor of the editor used to determine the location of element config entry.
* @param element Element to be assigned to config.
* @param config Config of the editor.
* @returns The updated configuration object.
*/
export declare function assignElementToEditorConfig(Editor: EditorRelaxedConstructor, element: HTMLElement, config: EditorRelaxedConfig): EditorRelaxedConfig;