8
0
فهرست منبع

Other: Use essentials preset instead of low level features like typing and enter. Closes #9.

Piotrek Koszuliński 8 سال پیش
والد
کامیت
d26cbd62e0

+ 3 - 9
packages/ckeditor5-build-classic/ckeditor.js

@@ -4,11 +4,10 @@
  */
 
 import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classic';
+import EssentialsPlugin from '@ckeditor/ckeditor5-presets/src/essentials';
 import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
 import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
 import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
-import ClipboardPlugin from '@ckeditor/ckeditor5-clipboard/src/clipboard';
-import EnterPlugin from '@ckeditor/ckeditor5-enter/src/enter';
 import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
 import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
 import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
@@ -17,18 +16,15 @@ import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
 import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
 import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
 import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-import TypingPlugin from '@ckeditor/ckeditor5-typing/src/typing';
-import UndoPlugin from '@ckeditor/ckeditor5-undo/src/undo';
 
 export class ClassicEditor extends ClassicEditorBase {}
 
 ClassicEditor.build = {
 	plugins: [
+		EssentialsPlugin,
 		AutoformatPlugin,
 		BoldPlugin,
 		ItalicPlugin,
-		ClipboardPlugin,
-		EnterPlugin,
 		HeadingPlugin,
 		ImagePlugin,
 		ImagecaptionPlugin,
@@ -36,9 +32,7 @@ ClassicEditor.build = {
 		ImagetoolbarPlugin,
 		LinkPlugin,
 		ListPlugin,
-		ParagraphPlugin,
-		TypingPlugin,
-		UndoPlugin
+		ParagraphPlugin
 	],
 	config: require( './config-editor' )
 };

+ 2 - 4
packages/ckeditor5-build-classic/config-build.js

@@ -9,11 +9,11 @@ module.exports = {
 	editor: '@ckeditor/ckeditor5-editor-classic/src/classic',
 	moduleName: 'ClassicEditor',
 	plugins: [
+		'@ckeditor/ckeditor5-presets/src/essentials',
+
 		'@ckeditor/ckeditor5-autoformat/src/autoformat',
 		'@ckeditor/ckeditor5-basic-styles/src/bold',
 		'@ckeditor/ckeditor5-basic-styles/src/italic',
-		'@ckeditor/ckeditor5-clipboard/src/clipboard',
-		'@ckeditor/ckeditor5-enter/src/enter',
 		'@ckeditor/ckeditor5-heading/src/heading',
 		'@ckeditor/ckeditor5-image/src/image',
 		'@ckeditor/ckeditor5-image/src/imagecaption',
@@ -22,7 +22,5 @@ module.exports = {
 		'@ckeditor/ckeditor5-link/src/link',
 		'@ckeditor/ckeditor5-list/src/list',
 		'@ckeditor/ckeditor5-paragraph/src/paragraph',
-		'@ckeditor/ckeditor5-typing/src/typing',
-		'@ckeditor/ckeditor5-undo/src/undo',
 	]
 };

+ 2 - 5
packages/ckeditor5-build-classic/package.json

@@ -6,17 +6,14 @@
   "main": "./build/ckeditor.js",
   "dependencies": {
     "@ckeditor/ckeditor5-editor-classic": "^0.7.2",
+    "@ckeditor/ckeditor5-presets": "^0.2.1",
     "@ckeditor/ckeditor5-autoformat": "*",
     "@ckeditor/ckeditor5-basic-styles": "*",
-    "@ckeditor/ckeditor5-clipboard": "^0.5.0",
-    "@ckeditor/ckeditor5-enter": "^0.9.0",
     "@ckeditor/ckeditor5-heading": "^0.9.0",
     "@ckeditor/ckeditor5-image": "^0.5.0",
     "@ckeditor/ckeditor5-link": "^0.6.0",
     "@ckeditor/ckeditor5-list": "^0.6.0",
-    "@ckeditor/ckeditor5-paragraph": "^0.7.0",
-    "@ckeditor/ckeditor5-typing": "^0.9.0",
-    "@ckeditor/ckeditor5-undo": "^0.8.0"
+    "@ckeditor/ckeditor5-paragraph": "^0.7.0"
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-dev-utils": "^2.5.0",