浏览代码

Other: fix listItem compatibility.

Maciej Gołaszewski 8 年之前
父节点
当前提交
c400ca560f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-alignment/src/alignmentcommand.js

+ 1 - 1
packages/ckeditor5-alignment/src/alignmentcommand.js

@@ -108,7 +108,7 @@ export default class AlignmentCommand extends Command {
 		return schema.check( {
 			name: firstBlock.name,
 			// Apparently I must pass current attributes as otherwise adding alignment on listItem will fail.
-			attributes: [ 'alignment' ]
+			attributes: [ ...firstBlock.getAttributeKeys(), 'alignment' ]
 		} );
 	}