gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

When I click Edit Image, gutenberg displays an image insert instead

Open achmedislamic opened this issue 7 years ago • 9 comments

Describe the bug I have old post that is not using gutenberg. So, I convert that post to Blocks. When I convert to Blocks, select an image and click Edit image, Gutenberg displays image insert instead of editing that image like always.

To reproduce Steps to reproduce the behavior:

  1. Open one of your old post
  2. Convert that post to Block
  3. Select an image and click Edit Image
  4. Gutenberg now wants you to insert image rather than editing the selected image.

Expected behavior Gutenberg should shows image edit modal.

Screenshots image-bug-gutenberg

Desktop (please complete the following information):

  • OS: Windows 10 October 2018 Update
  • Browser Google Chrome
  • Version 74

Additional context

  • Using Wordpress 5.2

Sorry for my bad english.

achmedislamic avatar May 13 '19 22:05 achmedislamic

That is actually a feature... See #14142.

swissspidy avatar May 13 '19 23:05 swissspidy

I still don't get it why this is a feature. I really just want to edit the image like the image size, edit the Alt Text, description, etc. If I want to upload a new image, I just create new image block.

And I just realize the image that I used is an old image that I got from Blogger. I migrate my Blogger.com to Wordpress and the image is still from Blogger.

Sorry for my bad english.

achmedislamic avatar May 14 '19 00:05 achmedislamic

Oh, I see.

Alt text and image size can be edited through the block sidebar on the right side:

Screenshot 2019-05-13 at 17 32 02

The caption can be added right below the image:

Screenshot 2019-05-13 at 17 33 21

Although there indeed is no link to edit the attachment as a whole 🤔 That is a bit odd.

swissspidy avatar May 14 '19 00:05 swissspidy

Oh, this is my bad ☹ image

I always use the Edit image modal to edit my image. I rarely used block sidebar. But still, the "Edit image" button should show Edit image modal or highlight the block sidebar. It doesn't seems right the button says "Edit image" but in reality, user see the image upload block.

achmedislamic avatar May 14 '19 00:05 achmedislamic

Agreed.

It's more "Replace image" than "Edit image". I guess that label should be replaced. Plus perhaps the pencil could be brought back somewhere to allow opening the media modal.

swissspidy avatar May 14 '19 00:05 swissspidy

In a recent release of Gutenberg (5.5 I believe), that edit icon was swapped out for a more appropriate "swap" icon:

Screen Shot 2019-05-14 at 3 23 53 PM

Image details like size/caption/etc. still live in the sidebar, since that's the usual place for those sorts of controls. Since the edit icon confusion has been addressed already, I'm going to mark this as closed, but feel free to let me know if there's another issue that still needs addressing!

kjellr avatar May 14 '19 19:05 kjellr

@kjellr Correct me if I am wrong, but there still seems to be no way to edit the attachment in the media library. Also "Edit image" is misleading when the button is clearly for replacing the image, not editing it. Shouldn't that be addressed?

swissspidy avatar May 14 '19 19:05 swissspidy

Rephrasing that tooltip is certainly something we can do. I'll reopen this ticket to track that.

For editing the image in the media modal, I feel like most of that functionality should happen within Gutenberg eventually. I know there are tickets related to size + cropping (#13748, #14829) for instance — if there are other specific things, they should probably be funneled into individual issues.

kjellr avatar May 14 '19 20:05 kjellr

There's a new "Replace media" component being built which should be merged soon. It will solve this issue completely. I'm closing this issue because it's actually a feature, and will be solved further with this other PR. https://github.com/WordPress/gutenberg/pull/16200

mapk avatar Nov 19 '19 17:11 mapk