Browse Source

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

Kamil Piechaczek 8 năm trước cách đây
mục cha
commit
e19c3bc19a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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() );
 	}
 
 	/**