Procházet zdrojové kódy

Fixed error with not updated context.

Maciej Bukowski před 6 roky
rodič
revize
00b3c2bd3c

+ 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( () => {