浏览代码

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