Explorar o código

Adjusted Editor#destroy to the engine changes.

Oskar Wróbel %!s(int64=8) %!d(string=hai) anos
pai
achega
4f93e2486d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 			} );
 	}