UNPKG

@ckeditor/ckeditor5-style

Version:

Style feature for CKEditor 5.

47 lines (46 loc) 1.28 kB
/** * @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/integrations/list */ import { Plugin } from 'ckeditor5/src/core.js'; import StyleUtils from '../styleutils.js'; export default class ListStyleSupport extends Plugin { private _listUtils; private _styleUtils; private _htmlSupport; /** * @inheritDoc */ static get pluginName(): "ListStyleSupport"; /** * @inheritDoc */ static get isOfficialPlugin(): true; /** * @inheritDoc */ static get requires(): readonly [typeof StyleUtils, "GeneralHtmlSupport"]; /** * @inheritDoc */ init(): void; /** * Verifies if the given style is applicable to the provided block element. */ private _isStyleEnabledForBlock; /** * Returns true if the given style is applied to the specified block element. */ private _isStyleActiveForBlock; /** * Returns an array of block elements that style should be applied to. */ private _getAffectedBlocks; /** * Returns a view template definition for the style preview. */ private _getStylePreview; }