-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
indent.js
51 lines (46 loc) · 1.52 KB
/
indent.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module indent/indent
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import IndentEditing from './indentediting';
import IndentUI from './indentui';
/**
* The indent feature.
*
* This plugin acts as a single entry point plugin for other features that implement indentation of elements like lists or paragraphs.
*
* The compatible features are:
*
* * The {@link module:list/list~List} or {@link module:list/listediting~ListEditing} feature for list indentation.
* * The {@link module:indent/indentblock~IndentBlock} feature for block indentation.
*
* This is a "glue" plugin that loads the following plugins:
*
* * The {@link module:indent/indentediting~IndentEditing indent editing feature}.
* * The {@link module:indent/indentui~IndentUI indent UI feature}.
*
* The dependent plugins register the `'indent'` and `'outdent'` commands and introduce the `'indent'` and `'outdent'` buttons
* that allow to increase or decrease text indentation of supported elements.
*
* **Note**: In order for the commands and buttons to work, at least one of compatible features is required.
*
* @extends module:core/plugin~Plugin
*/
export default class Indent extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'Indent';
}
/**
* @inheritDoc
*/
static get requires() {
return [ IndentEditing, IndentUI ];
}
}