Преглед на файлове

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' ]
 		} );
 	}