@ckeditor/ckeditor5-font
Version:
Font feature for CKEditor 5.
27 lines (26 loc) • 859 B
TypeScript
/**
* @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/fontbackgroundcolor/fontbackgroundcolorcommand
*/
import type { Editor } from "@ckeditor/ckeditor5-core";
import { FontCommand } from "../fontcommand.js";
/**
* The font background color command. It is used by
* {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}
* to apply the font background color.
*
* ```ts
* editor.execute( 'fontBackgroundColor', { value: 'rgb(250, 20, 20)' } );
* ```
*
* **Note**: Executing the command with the `null` value removes the attribute from the model.
*/
export declare class FontBackgroundColorCommand extends FontCommand {
/**
* @inheritDoc
*/
constructor(editor: Editor);
}