Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
achmedislamic opened this issue May 13, 2019 · 9 comments
Closed
Labels
[Block] Image Affects the Image Block Needs Design Feedback Needs general design feedback.

Comments

@achmedislamic
Copy link

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.

@swissspidy swissspidy added the [Block] Image Affects the Image Block label May 13, 2019
@swissspidy
Copy link
Member

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

@achmedislamic
Copy link
Author

achmedislamic commented May 14, 2019

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.

@swissspidy
Copy link
Member

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.

@achmedislamic
Copy link
Author

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.

@swissspidy swissspidy added the Needs Design Feedback Needs general design feedback. label May 14, 2019
@swissspidy
Copy link
Member

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.

@kjellr
Copy link
Contributor

kjellr commented May 14, 2019

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 kjellr closed this as completed May 14, 2019
@swissspidy
Copy link
Member

@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?

@kjellr
Copy link
Contributor

kjellr commented May 14, 2019

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.

@mapk
Copy link
Contributor

mapk commented Nov 19, 2019

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. #16200

@mapk mapk closed this as completed Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

No branches or pull requests

4 participants