Explorar o código

Other: fix listItem compatibility.

Maciej Gołaszewski %!s(int64=8) %!d(string=hai) anos
pai
achega
c400ca560f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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' ]
 		} );
 	}