소스 검색

Fixed: engine.treeModel.Schema incorrectly interpreted empty arrays in query attribute property.

Szymon Cofalik 9 년 전
부모
커밋
fb5d6be0d0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/ckeditor5-engine/src/treemodel/schema.js

+ 2 - 0
packages/ckeditor5-engine/src/treemodel/schema.js

@@ -365,6 +365,8 @@ export default class Schema {
 		// If attributes property is a string or undefined, wrap it in an array for easier processing.
 		if ( !isArray( query.attributes ) ) {
 			query.attributes = [ query.attributes ];
+		} else if ( query.attributes.length === 0 ) {
+			query.attributes.push( undefined );
 		}
 
 		// Normalize the path to an array of strings.