Explorar el Código

Added comment for copying plugins.

Maciej Bukowski hace 6 años
padre
commit
a5a2a4cf1e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      packages/ckeditor5-core/src/editor/editor.js

+ 2 - 0
packages/ckeditor5-core/src/editor/editor.js

@@ -61,6 +61,8 @@ export default class Editor {
 		this._context = config.context || new Context( { language: config.language } );
 		this._context._addEditor( this, !config.context );
 
+		// Clone the plugins to make sure that the plugin array will not be shared
+		// between editors and make the watchdog feature work correctly.
 		const availablePlugins = Array.from( this.constructor.builtinPlugins || [] );
 
 		/**