-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
essentials.ts
49 lines (44 loc) · 1.52 KB
/
essentials.ts
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
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module essentials/essentials
*/
import { Plugin } from 'ckeditor5/src/core.js';
import { Clipboard } from 'ckeditor5/src/clipboard.js';
import { Enter, ShiftEnter } from 'ckeditor5/src/enter.js';
import { SelectAll } from 'ckeditor5/src/select-all.js';
import { Typing } from 'ckeditor5/src/typing.js';
import { Undo } from 'ckeditor5/src/undo.js';
import { AccessibilityHelp } from 'ckeditor5/src/ui.js';
/**
* A plugin including all essential editing features. It represents a set of features that enables similar functionalities
* to a `<textarea>` element.
*
* It includes:
*
* * {@link module:clipboard/clipboard~Clipboard},
* * {@link module:enter/enter~Enter},
* * {@link module:select-all/selectall~SelectAll},
* * {@link module:enter/shiftenter~ShiftEnter},
* * {@link module:typing/typing~Typing},
* * {@link module:undo/undo~Undo}.
*
* This plugin set does not define any block-level containers (such as {@link module:paragraph/paragraph~Paragraph}).
* If your editor is supposed to handle block content, make sure to include it.
*/
export default class Essentials extends Plugin {
/**
* @inheritDoc
*/
public static get requires() {
return [ AccessibilityHelp, Clipboard, Enter, SelectAll, ShiftEnter, Typing, Undo ] as const;
}
/**
* @inheritDoc
*/
public static get pluginName() {
return 'Essentials' as const;
}
}