瀏覽代碼

Fixed incorrect schema path.

Oskar Wróbel 8 年之前
父節點
當前提交
fbb6df00ff
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-engine/src/controller/insertcontent.js

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

@@ -292,7 +292,7 @@ class Insertion {
 			// When Text is a direct child of node which is going to be merged
 			// we need to strip it from the disallowed attributes according to the new parent.
 			if ( children.some( child => child instanceof Text ) ) {
-				removeDisallowedAttributes( children, mergePosLeft.nodeBefore, this.schema );
+				removeDisallowedAttributes( children, [ mergePosLeft.nodeBefore ], this.schema );
 			}
 
 			this.batch.merge( mergePosLeft );
@@ -323,7 +323,7 @@ class Insertion {
 			// When Text is a direct child of node which is going to be merged
 			// we need to strip it from the disallowed attributes according to the new parent.
 			if ( children.some( child => child instanceof Text ) ) {
-				removeDisallowedAttributes( children, mergePosLeft.nodeAfter, this.schema );
+				removeDisallowedAttributes( children, [ mergePosLeft.nodeAfter ], this.schema );
 			}
 
 			this.batch.merge( mergePosRight );