8
0
Просмотр исходного кода

Internal: Added default value for available plugins in the editor.

Kamil Piechaczek 9 лет назад
Родитель
Сommit
e94154c0f8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-core/src/editor/editor.js

+ 1 - 1
packages/ckeditor5-core/src/editor/editor.js

@@ -31,7 +31,7 @@ export default class Editor {
 	 * @param {Object} config The editor config.
 	 */
 	constructor( config ) {
-		const availablePlugins = this.constructor.build && this.constructor.build.plugins;
+		const availablePlugins = ( this.constructor.build && this.constructor.build.plugins ) || [];
 
 		/**
 		 * Holds all configurations specific to this editor instance.