Explorar el Código

Moved the editor configuration to "config-build.js" file.

Kamil Piechaczek hace 8 años
padre
commit
bb8b0193ba

+ 1 - 1
packages/ckeditor5-build-classic/bin/create-entry-file.js

@@ -12,6 +12,6 @@ const buildConfig = require( '../config-build' );
 
 console.log( 'Creating the entry file...' );
 
-bundler.createEntryFile( 'ckeditor.js', './config-editor', buildConfig );
+bundler.createEntryFile( 'ckeditor.js', './config-build', buildConfig );
 
 console.log( 'Done.' );

+ 1 - 1
packages/ckeditor5-build-classic/ckeditor.js

@@ -36,5 +36,5 @@ ClassicEditor.build = {
 		ListPlugin,
 		ParagraphPlugin
 	],
-	config: require( './config-editor' )
+	config: require( './config-build' ).config
 };

+ 19 - 1
packages/ckeditor5-build-classic/config-build.js

@@ -23,5 +23,23 @@ module.exports = {
 		'@ckeditor/ckeditor5-link/src/link',
 		'@ckeditor/ckeditor5-list/src/list',
 		'@ckeditor/ckeditor5-paragraph/src/paragraph',
-	]
+	],
+	config: {
+		toolbar: [
+			'headings',
+			'bold',
+			'italic',
+			'link',
+			'unlink',
+			'bulletedList',
+			'numberedList',
+			'blockQuote',
+			'undo',
+			'redo'
+		],
+
+		image: {
+			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
+		}
+	}
 };

+ 0 - 25
packages/ckeditor5-build-classic/config-editor.js

@@ -1,25 +0,0 @@
-/**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-module.exports = {
-	toolbar: [
-		'headings',
-		'bold',
-		'italic',
-		'link',
-		'unlink',
-		'bulletedList',
-		'numberedList',
-		'blockQuote',
-		'undo',
-		'redo'
-	],
-
-	image: {
-		toolbar: [ 'imageStyleFull', 'imageStyleSide', '|' , 'imageTextAlternative' ]
-	}
-};