@ckeditor/ckeditor5-font
Version:
Font feature for CKEditor 5.
40 lines (39 loc) • 1.13 kB
JavaScript
/**
* @license Copyright (c) 2003-2025, 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
*/
import { Plugin } from 'ckeditor5/src/core.js';
import { FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
import { FontFamilyUI } from './fontfamily/fontfamilyui.js';
/**
* The font family plugin.
*
* For a detailed overview, check the {@glink features/font font feature} documentatiom
* and the {@glink api/font package page}.
*
* This is a "glue" plugin which loads the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} and
* {@link module:font/fontfamily/fontfamilyui~FontFamilyUI} features in the editor.
*/
export class FontFamily extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [FontFamilyEditing, FontFamilyUI];
}
/**
* @inheritDoc
*/
static get pluginName() {
return 'FontFamily';
}
/**
* @inheritDoc
*/
static get isOfficialPlugin() {
return true;
}
}