Răsfoiți Sursa

Fixed error with not updated context.

Maciej Bukowski 6 ani în urmă
părinte
comite
00b3c2bd3c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/ckeditor5-watchdog/src/editorwatchdog.js

+ 2 - 2
packages/ckeditor5-watchdog/src/editorwatchdog.js

@@ -144,13 +144,13 @@ export default class EditorWatchdog extends Watchdog {
 			} )
 			.then( () => {
 				if ( typeof this._elementOrData === 'string' ) {
-					return this.create( this._data, this._config );
+					return this.create( this._data, this._config, this._config.context );
 				} else {
 					const updatedConfig = Object.assign( {}, this._config, {
 						initialData: this._data
 					} );
 
-					return this.create( this._elementOrData, updatedConfig );
+					return this.create( this._elementOrData, updatedConfig, updatedConfig.context );
 				}
 			} )
 			.then( () => {