-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Alt text added to Image Settings in Image block is not retained for reuse #8941
Comments
This is true for Alt and Caption in v3.7.0 as well. I would also want to update the Description field here. Desktop (please complete the following information): OS: OS X High Sierra Additional context Gutenberg 3.7.0 |
This is still true for Alt and Caption in 4.3 |
This is still true as of Gutenberg 5.1 and WordPress 5.1. It makes it significantly harder to maintain an accessible and useful media library. #11054 is related in that many of the new image upload flows either don't allow editing image meta or don't sync that meta back to the Media Library. This is going to lead to significantly bloated and unsearchable media libraries. |
Still an issue Nov 9, 2019 |
There is a similar Core Trac ticket: Alt Text Not Saving Outside of Library The conclusion from the WP Accessibility team was that this works as expected:
From https://core.trac.wordpress.org/ticket/47456:
Please feel free to reopen this issue if the discussion needs to continue. |
WP.. surprises me. Everyone wants to have reusable alt, but can go and f yourself - it's expected) |
Updating my original comment: I agree with the WP Core's reply and the user's complaints. I spent some time troubleshooting this and as an update, I did discover a workaround that allows for a single upload from a post or page that adds the alternative description to both the Library and Post. When you click to Upload an image, choose the text link that reads "Media Library" instead of using the blue Upload button. Then click the first Tab that reads Upload. When you upload this way, you're uploading directly to the Media Library and can add a Media Library description during the upload process. Then click Select. Your image is added to your post and media library with the same description. If you choose, you can now change your alternative text for just this post's image using the block area. This is a nice feature. It encourages what the Core team wanted: having users make post-specific alts because most users will use the blue Upload button. It also gives users who want the shared functionality an option to do that, too. Thank you! |
Describe the bug
Uploading an image direct to a Gutenberg post puts the image directly in the post, bypassing the Media Library dialog with Attachment Details.
If you select an image to add from the Media Library, you see the Select or Upload Media screen where the Attachment Details show when you have selected something. There you can add caption, alt text and description which are retained for subsequent usage. If you add alt text here it's copied over to the Alt text box in Image Settings.
For a brand new upload a user won't see the Media Library Attachment Details, so it's logical to add alt text in the Image Settings panel. In that case, it's not saved for reuse.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected that the alt text would be saved for that image for reuse. If I add alt text when uploading an image in the classic editor, the alt text is retained for the next time I use the image.
I could go to the Media Library and edit the image there to add alt text, but that breaks my workflow.
Screenshots
Image uploaded, alt text typed in Image Settings
Alt text shows in the post
Image selected for reuse
No alt text :(
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: