瀏覽代碼

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

Kamil Piechaczek 8 年之前
父節點
當前提交
e19c3bc19a
共有 1 個文件被更改,包括 2 次插入2 次删除
  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() {
 	destroy() {
 		this._elementReplacer.restore();
 		this._elementReplacer.restore();
 
 
-		return this.ui.destroy()
-			.then( () => super.destroy() );
+		return super.destroy()
+			.then( () => this.ui.destroy() );
 	}
 	}
 
 
 	/**
 	/**