Explorar o código

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

Kamil Piechaczek %!s(int64=9) %!d(string=hai) anos
pai
achega
e94154c0f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
 	 * @param {Object} config The editor config.
 	 */
 	 */
 	constructor( 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.
 		 * Holds all configurations specific to this editor instance.