8
0
Quellcode durchsuchen

Other: fix listItem compatibility.

Maciej Gołaszewski vor 8 Jahren
Ursprung
Commit
c400ca560f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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' ]
 		} );
 	}