@_sh/strapi-plugin-ckeditor
Version:
Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)
38 lines (37 loc) • 1.11 kB
TypeScript
import type { PluginConfig, UserPluginConfig, Preset, Theme } from './types';
/**
* Sets a configuration for the plugin.
*
* @remarks
*
* - Function must be invoked before the admin panel's bootstrap lifecycle function.
* The recommended way is to invoke it within the admin panel's register lifecycle function.
*
* - Provided properties will overwrite the default configuration values.
*
* @param userConfig - Plugin configuration object.
*/
export declare function setPluginConfig(userPluginConfig: UserPluginConfig): void;
/**
* Returns the presets object.
*
* @remarks
*
* - Each property name must match the corresponding preset's name.
*
* - To extend or modify the options visible in the admin panel's content manager,
* changes must be made before the admin panel's bootstrap lifecycle function.
*
*/
export declare function getPluginPresets(): Record<string, Preset>;
/**
* Returns the theme object.
*
*/
export declare function getPluginTheme(): Theme;
/**
* Retrieves current plugin configuration.
*
* @internal
*/
export declare function getPluginConfig(): PluginConfig;