UNPKG

973 BJavaScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module list/liststyle
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import ListProperties from './listproperties';
10import { logWarning } from 'ckeditor5/src/utils';
11/**
12 * The list style feature.
13 *
14 * This is an obsolete plugin that exists for backward compatibility only.
15 * Use the {@link module:list/listproperties~ListProperties list properties plugin} instead.
16 *
17 * @deprecated
18 */
19export default class ListStyle extends Plugin {
20 /**
21 * @inheritDoc
22 */
23 static get requires() {
24 return [ListProperties];
25 }
26 /**
27 * @inheritDoc
28 */
29 static get pluginName() {
30 return 'ListStyle';
31 }
32 constructor(editor) {
33 super(editor);
34 logWarning('The `ListStyle` plugin is obsolete. Use `ListProperties` instead.');
35 }
36}