From be765a06781b3e189520c24e9b699f3408a6ba95 Mon Sep 17 00:00:00 2001 From: Marta Motyczynska Date: Thu, 7 Sep 2023 14:56:43 +0200 Subject: [PATCH] Give a variable a more precise name. --- .../src/imageresize/imageresizeediting.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ckeditor5-image/src/imageresize/imageresizeediting.ts b/packages/ckeditor5-image/src/imageresize/imageresizeediting.ts index c405b07ef5a..c8158ade8c0 100644 --- a/packages/ckeditor5-image/src/imageresize/imageresizeediting.ts +++ b/packages/ckeditor5-image/src/imageresize/imageresizeediting.ts @@ -108,14 +108,14 @@ export default class ImageResizeEditing extends Plugin { } const viewWriter = conversionApi.writer; - const figure = conversionApi.mapper.toViewElement( data.item ); + const viewImg = conversionApi.mapper.toViewElement( data.item ); if ( data.attributeNewValue !== null ) { - viewWriter.setStyle( 'width', data.attributeNewValue, figure ); - viewWriter.addClass( 'image_resized', figure ); + viewWriter.setStyle( 'width', data.attributeNewValue, viewImg ); + viewWriter.addClass( 'image_resized', viewImg ); } else { - viewWriter.removeStyle( 'width', figure ); - viewWriter.removeClass( 'image_resized', figure ); + viewWriter.removeStyle( 'width', viewImg ); + viewWriter.removeClass( 'image_resized', viewImg ); } } ) );