Procházet zdrojové kódy

Limit filtering only to a merged node.

Oskar Wróbel před 8 roky
rodič
revize
08cc98c052

+ 2 - 1
packages/ckeditor5-engine/src/controller/insertcontent.js

@@ -290,7 +290,8 @@ class Insertion {
 
 			// We need to check and strip disallowed attributes in all nested nodes because after merge
 			// some attributes could end up in a path where are disallowed.
-			removeDisallowedAttributes( Array.from( position.parent.getChildren() ), position, this.schema, this.batch );
+			const parent = position.nodeBefore;
+			removeDisallowedAttributes( Array.from( parent.getChildren() ), Position.createAt( parent ), this.schema, this.batch );
 
 			this.position = Position.createFromPosition( position );
 			position.detach();