@ckeditor/ckeditor5-style
Version:
Style feature for CKEditor 5.
35 lines (34 loc) • 936 B
TypeScript
/**
* @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 style/styleui
*/
import { Plugin } from 'ckeditor5/src/core.js';
import StyleUtils from './styleutils.js';
import '../theme/style.css';
/**
* The UI plugin of the style feature .
*
* It registers the `'style'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
* that displays a grid of styles and allows changing styles of the content.
*/
export default class StyleUI extends Plugin {
/**
* @inheritDoc
*/
static get pluginName(): "StyleUI";
/**
* @inheritDoc
*/
static get isOfficialPlugin(): true;
/**
* @inheritDoc
*/
static get requires(): readonly [typeof StyleUtils];
/**
* @inheritDoc
*/
init(): void;
}