Explorar o código

Assign parent element document to the inserted children.

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
99907e8130
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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++;