Sfoglia il codice sorgente

Changed order of destroying the editor layers. Plugins must be destroyed before the UI.

Kamil Piechaczek 8 anni fa
parent
commit
e19c3bc19a

+ 2 - 2
packages/ckeditor5-core/tests/_utils/classictesteditor.js

@@ -43,8 +43,8 @@ export default class ClassicTestEditor extends StandardEditor {
 	destroy() {
 		this._elementReplacer.restore();
 
-		return this.ui.destroy()
-			.then( () => super.destroy() );
+		return super.destroy()
+			.then( () => this.ui.destroy() );
 	}
 
 	/**