Explorar el Código

Assign parent element document to the inserted children.

Maciej Gołaszewski hace 5 años
padre
commit
99907e8130
Se han modificado 1 ficheros con 1 adiciones y 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++;