Explorar o código

Aligned code to with new Batch#setAttributes API.

Oskar Wróbel %!s(int64=8) %!d(string=hai) anos
pai
achega
8379daf938
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 );
 					}
 				}
 			}