Преглед изворни кода

Editor.destroy - plugins will be destroyed first.

Kamil Piechaczek пре 8 година
родитељ
комит
50eaeefa0f
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      packages/ckeditor5-core/src/editor/editor.js

+ 1 - 2
packages/ckeditor5-core/src/editor/editor.js

@@ -147,9 +147,8 @@ export default class Editor {
 		this.fire( 'destroy' );
 		this.stopListening();
 
-		return Promise.resolve()
+		return this.plugins.destroy()
 			.then( () => {
-				this.plugins.destroy();
 				this.document.destroy();
 				this.data.destroy();
 			} );