UNPKG

@ckeditor/ckeditor5-font

Version:

Font feature for CKEditor 5.

26 lines (25 loc) 759 B
/** * @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/fontfamily/fontfamilycommand */ import type { Editor } from "@ckeditor/ckeditor5-core"; import { FontCommand } from "../fontcommand.js"; /** * The font family command. It is used by {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} * to apply the font family. * * ```ts * editor.execute( 'fontFamily', { value: 'Arial' } ); * ``` * * **Note**: Executing the command without the value removes the attribute from the model. */ export declare class FontFamilyCommand extends FontCommand { /** * @inheritDoc */ constructor(editor: Editor); }