UNPKG

@ckeditor/ckeditor5-font

Version:

Font feature for CKEditor 5.

42 lines (41 loc) 1.45 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 */ /** * @module font/fontsize */ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core"; import { FontSizeEditing } from "./fontsize/fontsizeediting.js"; import { FontSizeUI } from "./fontsize/fontsizeui.js"; import type { FontSizeOption } from "./fontconfig.js"; /** * The font size plugin. * * For a detailed overview, check the {@glink features/font font feature} documentation * and the {@glink api/font package page}. * * This is a "glue" plugin which loads the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} and * {@link module:font/fontsize/fontsizeui~FontSizeUI} features in the editor. */ export declare class FontSize extends Plugin { /** * @inheritDoc */ static get requires(): PluginDependenciesOf<[FontSizeEditing, FontSizeUI]>; /** * @inheritDoc */ static get pluginName(): "FontSize"; /** * @inheritDoc */ static override get isOfficialPlugin(): true; /** * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options} * to the {@link module:font/fontconfig~FontSizeOption} format. * * @param options An array of options taken from the configuration. */ normalizeSizeOptions(options: Array<string | number | FontSizeOption>): Array<FontSizeOption>; }