Преглед на файлове

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() {
 		this._elementReplacer.restore();
 
-		return this.ui.destroy()
-			.then( () => super.destroy() );
+		return super.destroy()
+			.then( () => this.ui.destroy() );
 	}
 
 	/**