Ver Fonte

Other: fix listItem compatibility.

Maciej Gołaszewski há 8 anos atrás
pai
commit
c400ca560f
1 ficheiros alterados com 1 adições e 1 exclusões
  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' ]
 		} );
 	}