UNPKG

@ckeditor/ckeditor5-font

Version:

Font feature for CKEditor 5.

35 lines (34 loc) 1.01 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/fontsizeui */ import { Plugin } from "@ckeditor/ckeditor5-core"; /** * The font size UI plugin. It introduces the `'fontSize'` dropdown. */ export declare class FontSizeUI extends Plugin { /** * @inheritDoc */ static get pluginName(): "FontSizeUI"; /** * @inheritDoc */ static override get isOfficialPlugin(): true; /** * @inheritDoc */ init(): void; /** * Returns options as defined in `config.fontSize.options` but processed to account for * editor localization, i.e. to display {@link module:font/fontconfig~FontSizeOption} * in the correct language. * * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t} * when the user configuration is defined because the editor does not exist yet. */ private _getLocalizedOptions; }