Преглед на файлове

Limit filtering only to a merged node.

Oskar Wróbel преди 8 години
родител
ревизия
08cc98c052
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      packages/ckeditor5-engine/src/controller/insertcontent.js

+ 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();