Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit c5daf5d

Browse files
committed
Merge branch 'master' into t/ckeditor5-ui/144
2 parents 6ea4034 + 1d0d095 commit c5daf5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributecommand.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export default class AttributeCommand extends Command {
100100

101101
for ( const range of ranges ) {
102102
if ( value ) {
103-
batch.setAttribute( range, this.attributeKey, value );
103+
batch.setAttribute( this.attributeKey, value, range );
104104
} else {
105-
batch.removeAttribute( range, this.attributeKey );
105+
batch.removeAttribute( this.attributeKey, range );
106106
}
107107
}
108108
}

0 commit comments

Comments
 (0)