8
0
Pārlūkot izejas kodu

Adjusted Editor#destroy to the engine changes.

Oskar Wróbel 8 gadi atpakaļ
vecāks
revīzija
4f93e2486d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();
 			} );
 	}