-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Images: Overriding "Link To" #15865
Comments
+1 I'm also looking for a way to make 'Link to media file' the default behaviour. I keep forgetting this after saving a post, even after a year using the new editor. |
This might seem like a minor issue, but it has a large and negative impact on the quality of the experience of using Gutenberg for the user. |
Before Gutenberg (in the Classic editor), the default behavior was that it remembered the last setting you had used. So if you had a "link to" media file - it just did that automatically going forward, until you changed it to something else, whereafter it did that going forward. Simple. That was such as subtle yet awesome UI design choice. Unfortunately it just disappeared out the window when Gutenberg came along. For at long time I honestly just thought: "well okay, its new, they'll get around to fixed / reimplemeting that feature". Yet here we are. over a year later and still nothing. So you've forced me to take matters into my own hands and write this response. This missing little feature cost millions of users extra clicks single every day - and it has cost me personally thousands of clicks since i moved to WP5. Could we get this issue prioritized! Thanks. |
This seems like a duplicate of #10173. I'll keep this open as it seems like the discussion has evolved. |
Duplicate of #10173. |
I couldn't find an issue or discussion for this. Feel free to redirect this discussion to a different area.
Describe the bug
In the Classic Editor, the default value for the "Link To" field for images could be overridden using the
image_default_link_type
filter. For galleries, themedia_view_settings
filter could be used to change the default Link To value.In the block editor, it is not clear to me how to override these defaults, if you can at all. I also thought investigating if these preexisting filters could be used so that any preference that was defined for the Classic Editor would automatically be respected in the block editor.
This came up investigating Trac-46052. From my comment on that issue:
There is also a similar issue for image sizes to make the editor remember preference on a per user basis (#8663). This could also be explored for Link To, I think.
The text was updated successfully, but these errors were encountered: