-
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
Insert from URL missing when adding an image #1536
Comments
A user also brought this up themselves testing: "Is it not possible to get an image via an url? If so, I could not find a way to do it." |
Yeah, there probably needs to be a URL input field that appears in the placeholder, so somewhat of a combination of the current Image placeholder and the Embed placeholder: But, with that in place, should a user be able to say, replace an image inserted via URL to then be an image from the media library? And vice versa, should an image added from the media library be able to be replaced with an external image URL without having to replace the entire block? We can do this in the Image widget since the media modal has the two tabs for selecting from the media library and selecting via URL: |
Hi, I've been thinking about this lately. And i'm wondering if creating a specific Into the classic editor, It's possible to paste an external url to an image of course, but it's also possible to paste an external url to a video or an audio file. Once pasted, the image tag, video tag or audio tag are output into this editor. So here's what came to my mind about it:
|
My thoughts are that this should become part of the Image Block. I think that's where the user would naturally expect to find this. The audio/video blocks already seems to have this, so it should be possible to make it consistent. I think there are two main changes.
I think the most difficult question is whether these changes carry over to the Gallery Block (and if so, how?). That should probably be a separate issue. @karmatosed what are your thoughts? |
FYI in the last patch of #4155 I’ve added url inputs to images
… Le 13 août 2018 à 12:08, Daniel Richards ***@***.***> a écrit :
My thoughts are that this should become part of the Image Block. I think that's where the user would naturally expect to find this.
The audio/video blocks already seems to have this, so it should be possible to make it consistent.
I think there are two main changes.
Change the placeholder for the image block so that it's consistent with audio/video:
Change what happens when the edit button is pressed on the toolbar (this could behave in exactly the same way as the media block, display the placeholder again.)
I think the most difficult question is whether these changes carry over to the Gallery Block (and if so, how?). That should probably be a separate issue.
@karmatosed what are your thoughts?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@imath Oh no, I'd just about finished working on a branch that also adds the change when I saw your comment! When do you think you'll get a chance to address the feedback on your PR? I'm more than happy to help out if you need some assistance with it and don't have the time to look at it. If its something you can't look at I can also work on separating out the URL input change into a separate PR. A few options available, let me know what you think. |
Hi @talldan
I’m feeling really bad I haven’t found the time to update the PR, sorry about it. I think the input URL for media blocks or even the File block is very linked to the upload_files capability : it’s a way to let the contributor role use and edit the media blocks. So I think progress should be made on #4155 to solve #1536. That being said the fact I can’t find time to work on it shouldn’t block progresses on #4155. So I’m more than happy if you can bring your help on it or even take it over. I’m afraid I’ll need one more week before I can begin working on it.
… Le 14 août 2018 à 06:27, Daniel Richards ***@***.***> a écrit :
@imath Oh no, I'd just about finished working on a branch that also adds the change when I saw your comment!
When do you think you'll get a chance to address the feedback on your PR? I'm more than happy to help out if you need some assistance with it and don't have the time to look at it.
If its something you can't look at I can also work on separating out the URL input change into a separate PR.
A few options available, let me know what you think.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@imath - I've been working on it for a bit now, but I just can't forsee #4155 being merged. It's too difficult to review because of the way comments are hidden by github. I propose splitting it up into the following separate PRs:
☝️ I think those changes should be not too difficult to get reviewed and merged. MediaUploadCheck touches quite a few places, so it'd be good to get it into the codebase.
☝️ This bit requires more critique during review and possibly exploration of alternative ways of tackling the problem. I'm not sure that will happen on the #4155 PR as the feedback just gets lost. I'll make sure you're credited for all your hard work on all three parts. Let me know what you think. |
@talldan the only downside of it is precisely the UI will keep on being buggy for the contributor role. I wonder if it doesn't impact the Super Admin role on multisite btw... #4155 is 8 months old and it's being punted to later at almost each realease. New blocks were added like the inline image & the file one. IMHO, this doesn't seem to be the right priority to me. I would expect to first fix the capability issue, then add new media blocks... That being said. I understand your point of view, and i'm fine with your plan. At least, the contributor role will be able to add an image once he got stuck by the buggy UI with the media library 😉 |
Awesome work @talldan thanks a lot 🤞 |
Just removing design for now as we're iterating in the PR. |
This functionality is missing, whilst it may just not be implemented yet, it would be great to at least track that it doesn't get missed out.
The text was updated successfully, but these errors were encountered: