Skip to content

Commit

Permalink
Refactor reset option button tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Jul 7, 2020
1 parent 686c333 commit 1229fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ckeditor5-image/lang/contexts.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"Upload failed": "Title of the notification displayed when upload fails.",
"Image toolbar": "The label used by assistive technologies describing an image toolbar attached to an image widget.",
"Resize image to": "The label used for the standalone resize option buttons in the image toolbar",
"Resize image": "The label used for the dropdown in the image toolbar, containing defined resize options"
"Resize image": "The label used for the dropdown in the image toolbar, containing defined resize options",
"Resize image to the original size": "The label used for the standalone resize reset option button in the image toolbar, when user set the value to `null`"
}
2 changes: 1 addition & 1 deletion packages/ckeditor5-image/src/imageresize/imageresizeui.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class ImageResizeUI extends Plugin {
button.set( {
label: t( label ),
withText: true,
tooltip: t( 'Resize image to' ) + ' ' + ( parsedValue || 'the original size' ),
tooltip: parsedValue ? t( 'Resize image to' ) + ' ' + parsedValue : t( 'Resize image to the original size' ),
isToggleable: true,
commandValue: parsedValue
} );
Expand Down

0 comments on commit 1229fd9

Please sign in to comment.