Browse Source

Changed: parameters order in RenameDelta.

Szymon Cofalik 9 years ago
parent
commit
ebdef664ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-heading/src/headingscommand.js

+ 2 - 2
packages/ckeditor5-heading/src/headingscommand.js

@@ -111,12 +111,12 @@ export default class HeadingsCommand extends Command {
 				// When removing applied format.
 				if ( shouldRemove ) {
 					if ( element.name === formatId ) {
-						batch.rename( this.defaultFormat.id, element );
+						batch.rename( element, this.defaultFormat.id );
 					}
 				}
 				// When applying new format.
 				else {
-					batch.rename( formatId, element );
+					batch.rename( element, formatId );
 				}
 			}