Răsfoiți Sursa

Removed superfluous argument.

Piotrek Koszuliński 8 ani în urmă
părinte
comite
bf89817773

+ 1 - 1
packages/ckeditor5-image/src/imagestyle/imagestylecommand.js

@@ -82,7 +82,7 @@ export default class ImageStyleCommand extends Command {
 			// Default style means that there is no `imageStyle` attribute in the model.
 			// https://github.com/ckeditor/ckeditor5-image/issues/147
 			if ( this.style.isDefault ) {
-				batch.removeAttribute( imageElement, 'imageStyle', this.style.name );
+				batch.removeAttribute( imageElement, 'imageStyle' );
 			} else {
 				batch.setAttribute( imageElement, 'imageStyle', this.style.name );
 			}