Explorar o código

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

Kamil Piechaczek %!s(int64=8) %!d(string=hai) anos
pai
achega
e19c3bc19a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/ckeditor5-core/tests/_utils/classictesteditor.js

+ 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() );
 	}
 
 	/**