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

Adjusted Editor#destroy to the engine changes.

Oskar Wróbel преди 8 години
родител
ревизия
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()
 			.then( () => {
-				this.document.destroy();
+				this.model.document.destroy();
 				this.data.destroy();
 			} );
 	}