8
0
فهرست منبع

Added real plugins to the build.

Kamil Piechaczek 8 سال پیش
والد
کامیت
2124420729

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

@@ -9,10 +9,33 @@ module.exports = {
 	destinationPath: './build/',
 	editor: '@ckeditor/ckeditor5-editor-classic/src/classic',
 	plugins: [
-		'@ckeditor/ckeditor5-presets/src/article'
+		'@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',
+		'@ckeditor/ckeditor5-image/src/imagestyle',
+		'@ckeditor/ckeditor5-image/src/imagetoolbar',
+		'@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',
 	],
 	moduleName: 'ClassicEditor',
 	editorConfig: {
-		toolbar: [ 'image', 'headings' ]
+		toolbar: [
+			'headings',
+			'bold',
+			'italic',
+			'link',
+			'unlink',
+			'bulletedList',
+			'numberedList',
+			'undo',
+			'redo'
+		]
 	}
 };

+ 40 - 4
packages/ckeditor5-build-classic/ckeditor.js

@@ -4,16 +4,52 @@
  */
 
 import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classic';
-import ArticlePlugin from '@ckeditor/ckeditor5-presets/src/article';
+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';
+import ImagestylePlugin from '@ckeditor/ckeditor5-image/src/imagestyle';
+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 default class ClassicEditor extends ClassicEditorBase {}
 
 ClassicEditor.build = {
-	plugins: [ ArticlePlugin ],
+	plugins: [
+		BoldPlugin,
+		ItalicPlugin,
+		ClipboardPlugin,
+		EnterPlugin,
+		HeadingPlugin,
+		ImagePlugin,
+		ImagecaptionPlugin,
+		ImagestylePlugin,
+		ImagetoolbarPlugin,
+		LinkPlugin,
+		ListPlugin,
+		ParagraphPlugin,
+		TypingPlugin,
+		UndoPlugin 
+	],
 	config: {
 		toolbar: [
-			'image',
-			'headings'
+			'headings',
+			'bold',
+			'italic',
+			'link',
+			'unlink',
+			'bulletedList',
+			'numberedList',
+			'undo',
+			'redo'
 		]
 	}
 };

+ 11 - 1
packages/ckeditor5-build-classic/package.json

@@ -7,7 +7,17 @@
     "@ckeditor/ckeditor5-dev-utils": "^2.4.2",
     "@ckeditor/ckeditor5-dev-bundler-webpack": "^1.0.0",
     "@ckeditor/ckeditor5-editor-classic": "*",
-    "@ckeditor/ckeditor5-presets": "*"
+    "@ckeditor/ckeditor5-basic-styles": "*",
+    "@ckeditor/ckeditor5-clipboard": "*",
+    "@ckeditor/ckeditor5-enter": "*",
+    "@ckeditor/ckeditor5-heading": "*",
+    "@ckeditor/ckeditor5-image": "*",
+    "@ckeditor/ckeditor5-link": "*",
+    "@ckeditor/ckeditor5-list": "*",
+    "@ckeditor/ckeditor5-paragraph": "*",
+    "@ckeditor/ckeditor5-typing": "*",
+    "@ckeditor/ckeditor5-undo": "*",
+    "webpack": "^2.2.1"
   },
   "scripts": {
     "build": "node ./bin/build.js"