Browse Source

Assign parent element document to the inserted children.

Maciej Gołaszewski 5 years ago
parent
commit
99907e8130
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/ckeditor5-engine/src/view/element.js

+ 1 - 0
packages/ckeditor5-engine/src/view/element.js

@@ -620,6 +620,7 @@ export default class Element extends Node {
 			}
 
 			node.parent = this;
+			node.document = this.document;
 
 			this._children.splice( index, 0, node );
 			index++;