8
0
Просмотр исходного кода

Merge branch 'master' into t/ckeditor5-ui/144

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
5c9faa758d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-basic-styles/src/attributecommand.js

+ 2 - 2
packages/ckeditor5-basic-styles/src/attributecommand.js

@@ -100,9 +100,9 @@ export default class AttributeCommand extends Command {
 
 				for ( const range of ranges ) {
 					if ( value ) {
-						batch.setAttribute( range, this.attributeKey, value );
+						batch.setAttribute( this.attributeKey, value, range );
 					} else {
-						batch.removeAttribute( range, this.attributeKey );
+						batch.removeAttribute( this.attributeKey, range );
 					}
 				}
 			}