Explorar el Código

Improve editor destructuring process.

Maciej Gołaszewski hace 7 años
padre
commit
ceac4214f8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      packages/ckeditor5-editor-inline/src/inlineeditor.js

+ 2 - 0
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -95,11 +95,13 @@ export default class InlineEditor extends Editor {
 		const data = this.getData();
 		const data = this.getData();
 
 
 		this.ui.destroy();
 		this.ui.destroy();
+		this.ui = null;
 
 
 		return super.destroy()
 		return super.destroy()
 			.then( () => {
 			.then( () => {
 				if ( this.sourceElement ) {
 				if ( this.sourceElement ) {
 					setDataInElement( this.sourceElement, data );
 					setDataInElement( this.sourceElement, data );
+					this.sourceElement = null;
 				}
 				}
 			} );
 			} );
 	}
 	}