ckeditor_font-8.x-1.x-dev/js/ckeditor5_plugins/ckeditor5-font/src/fontfamily/fontfamilycommand.js
js/ckeditor5_plugins/ckeditor5-font/src/fontfamily/fontfamilycommand.js
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import FontCommand from '../fontcommand.js';
import { FONT_FAMILY } from '../utils.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 default class FontFamilyCommand extends FontCommand {
/**
* @inheritDoc
*/
constructor(editor) {
super(editor, FONT_FAMILY);
}
}
