@ckeditor/ckeditor5-font
Version:
Font feature for CKEditor 5.
59 lines (58 loc) • 2.91 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import type { Font, FontBackgroundColor, FontBackgroundColorEditing, FontBackgroundColorUI, FontBackgroundColorCommand, FontColor, FontColorEditing, FontColorUI, FontColorCommand, FontColorConfig, FontFamily, FontFamilyEditing, FontFamilyUI, FontFamilyCommand, FontFamilyConfig, FontSize, FontSizeEditing, FontSizeUI, FontSizeCommand, FontSizeConfig, FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE } from './index.js';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the font background color feature.
* It is introduced by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontColorConfig}.
*/
fontBackgroundColor?: FontColorConfig;
/**
* The configuration of the font color feature.
* It is introduced by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontColorConfig}.
*/
fontColor?: FontColorConfig;
/**
* The configuration of the font family feature.
* It is introduced by the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontFamilyConfig}.
*/
fontFamily?: FontFamilyConfig;
/**
* The configuration of the font size feature.
* It is introduced by the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontSizeConfig}.
*/
fontSize?: FontSizeConfig;
}
interface PluginsMap {
[]: Font;
[]: FontBackgroundColor;
[]: FontBackgroundColorEditing;
[]: FontBackgroundColorUI;
[]: FontColor;
[]: FontColorEditing;
[]: FontColorUI;
[]: FontFamily;
[]: FontFamilyEditing;
[]: FontFamilyUI;
[]: FontSize;
[]: FontSizeEditing;
[]: FontSizeUI;
}
interface CommandsMap {
[]: FontSizeCommand;
[]: FontFamilyCommand;
[]: FontColorCommand;
[]: FontBackgroundColorCommand;
}
}