diff --git a/packages/block-editor/src/components/image-editor/use-save-image.js b/packages/block-editor/src/components/image-editor/use-save-image.js index 676f74b9ab6a68..980ac9b8b1123c 100644 --- a/packages/block-editor/src/components/image-editor/use-save-image.js +++ b/packages/block-editor/src/components/image-editor/use-save-image.js @@ -83,6 +83,17 @@ export default function useSaveImage( { } ); createSuccessNotice( messages[ modifierType ], { type: 'snackbar', + actions: [ + { + label: __( 'Undo' ), + onClick: () => { + onSaveImage( { + id, + url, + } ); + }, + }, + ], } ); } ) .catch( ( error ) => {