Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 80314bf

Browse files
committed
Other: Use essentials preset instead of low level features like typing and enter. Closes #9.
1 parent ae2da32 commit 80314bf

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

ckeditor.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
*/
55

66
import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classic';
7+
import EssentialsPlugin from '@ckeditor/ckeditor5-presets/src/essentials';
78
import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
89
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
910
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
10-
import ClipboardPlugin from '@ckeditor/ckeditor5-clipboard/src/clipboard';
11-
import EnterPlugin from '@ckeditor/ckeditor5-enter/src/enter';
1211
import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
1312
import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
1413
import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
@@ -17,28 +16,23 @@ import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
1716
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
1817
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
1918
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
20-
import TypingPlugin from '@ckeditor/ckeditor5-typing/src/typing';
21-
import UndoPlugin from '@ckeditor/ckeditor5-undo/src/undo';
2219

2320
export class ClassicEditor extends ClassicEditorBase {}
2421

2522
ClassicEditor.build = {
2623
plugins: [
24+
EssentialsPlugin,
2725
AutoformatPlugin,
2826
BoldPlugin,
2927
ItalicPlugin,
30-
ClipboardPlugin,
31-
EnterPlugin,
3228
HeadingPlugin,
3329
ImagePlugin,
3430
ImagecaptionPlugin,
3531
ImagestylePlugin,
3632
ImagetoolbarPlugin,
3733
LinkPlugin,
3834
ListPlugin,
39-
ParagraphPlugin,
40-
TypingPlugin,
41-
UndoPlugin
35+
ParagraphPlugin
4236
],
4337
config: require( './config-editor' )
4438
};

config-build.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module.exports = {
99
editor: '@ckeditor/ckeditor5-editor-classic/src/classic',
1010
moduleName: 'ClassicEditor',
1111
plugins: [
12+
'@ckeditor/ckeditor5-presets/src/essentials',
13+
1214
'@ckeditor/ckeditor5-autoformat/src/autoformat',
1315
'@ckeditor/ckeditor5-basic-styles/src/bold',
1416
'@ckeditor/ckeditor5-basic-styles/src/italic',
15-
'@ckeditor/ckeditor5-clipboard/src/clipboard',
16-
'@ckeditor/ckeditor5-enter/src/enter',
1717
'@ckeditor/ckeditor5-heading/src/heading',
1818
'@ckeditor/ckeditor5-image/src/image',
1919
'@ckeditor/ckeditor5-image/src/imagecaption',
@@ -22,7 +22,5 @@ module.exports = {
2222
'@ckeditor/ckeditor5-link/src/link',
2323
'@ckeditor/ckeditor5-list/src/list',
2424
'@ckeditor/ckeditor5-paragraph/src/paragraph',
25-
'@ckeditor/ckeditor5-typing/src/typing',
26-
'@ckeditor/ckeditor5-undo/src/undo',
2725
]
2826
};

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66
"main": "./build/ckeditor.js",
77
"dependencies": {
88
"@ckeditor/ckeditor5-editor-classic": "^0.7.2",
9+
"@ckeditor/ckeditor5-presets": "^0.2.1",
910
"@ckeditor/ckeditor5-autoformat": "*",
1011
"@ckeditor/ckeditor5-basic-styles": "*",
11-
"@ckeditor/ckeditor5-clipboard": "^0.5.0",
12-
"@ckeditor/ckeditor5-enter": "^0.9.0",
1312
"@ckeditor/ckeditor5-heading": "^0.9.0",
1413
"@ckeditor/ckeditor5-image": "^0.5.0",
1514
"@ckeditor/ckeditor5-link": "^0.6.0",
1615
"@ckeditor/ckeditor5-list": "^0.6.0",
17-
"@ckeditor/ckeditor5-paragraph": "^0.7.0",
18-
"@ckeditor/ckeditor5-typing": "^0.9.0",
19-
"@ckeditor/ckeditor5-undo": "^0.8.0"
16+
"@ckeditor/ckeditor5-paragraph": "^0.7.0"
2017
},
2118
"devDependencies": {
2219
"@ckeditor/ckeditor5-dev-utils": "^2.5.0",

0 commit comments

Comments
 (0)