소스 검색

Aligned code to with new Batch#setAttributes API.

Oskar Wróbel 8 년 전
부모
커밋
8379daf938
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 );
 					}
 				}
 			}