8
0
Просмотр исходного кода

Extend the component tooltip message.

panr 5 лет назад
Родитель
Сommit
d73cda7ccb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-image/src/imageresize/ui/imageresizeui.js

+ 2 - 2
packages/ckeditor5-image/src/imageresize/ui/imageresizeui.js

@@ -80,7 +80,7 @@ export default class ImageResizeUI extends Plugin {
 				label: t( label ),
 				label: t( label ),
 				withText: true,
 				withText: true,
 				icon: linkIcon,
 				icon: linkIcon,
-				tooltip: t( 'Resize Image' ),
+				tooltip: t( `Resize image to ${ parsedValue }` ),
 				isToggleable: true,
 				isToggleable: true,
 				commandValue: parsedValue
 				commandValue: parsedValue
 			} );
 			} );
@@ -118,7 +118,7 @@ export default class ImageResizeUI extends Plugin {
 			const dropdownButton = dropdownView.buttonView;
 			const dropdownButton = dropdownView.buttonView;
 
 
 			dropdownButton.set( {
 			dropdownButton.set( {
-				tooltip: t( 'Resize Image' ),
+				tooltip: t( 'Resize image' ),
 				icon: linkIcon,
 				icon: linkIcon,
 				commandValue: firstOption.value,
 				commandValue: firstOption.value,
 				isToggleable: true,
 				isToggleable: true,