8
0
Просмотр исходного кода

Adjusted Editor#destroy to the engine changes.

Oskar Wróbel 8 лет назад
Родитель
Сommit
4f93e2486d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-core/src/editor/editor.js

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

@@ -171,7 +171,7 @@ export default class Editor {
 
 
 		return this.plugins.destroy()
 		return this.plugins.destroy()
 			.then( () => {
 			.then( () => {
-				this.document.destroy();
+				this.model.document.destroy();
 				this.data.destroy();
 				this.data.destroy();
 			} );
 			} );
 	}
 	}