-
Notifications
You must be signed in to change notification settings - Fork 58
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
Require user action to add a link to a block using a URL from the clipboard #4058
Comments
Just sharing the ticket relevant to the current behavior: #680 |
I'm personally +1 to the idea of moving away from a fully automatic filling in of the URL from the clipboard. When pasting is what I want to do, the auto-paste works like magic, but not when I actually don't want to paste but the clipboard happens to have a URL from a previous copy operation. If I can share an idea about an alternative UI, I'd consider adding an extra line to the Link To cell, similar to the "From clipboard" you have on your design proposal, but having it tappable like a button, to make it just one extra tap to paste the URL without first focusing in the link edit box. |
I think we should not change the text link behavior at all since it works really well imho (e.g. highlighting text and pressing the link). What I think needs tweaking is how the |
I think that makes sense @fluiddot. Maybe if this get's too complex we can handle the embed block on a separate issue.
I like @hypest's alternative approach to this too. Wdyt @iamthomasbishop? |
I was just playing around with leveraging the existing
It prompted me to wonder if we should be consistent with the WDYT? |
Absolutely! Let's align with the existing for consistency, esp in terms of content arrangement — my mock was a quick/crude sketch so it may have been an oversight. From a css/style perspective, I think we should be using a slightly-dimmer secondary text color for |
I appreciate you chiming in, @iamthomasbishop . ❤️ 🙏 A few more questions if you have a moment:
|
Good questions @ttahmouch !
I think the "from clipboard" text is okay because it's concise, but if we want to be a little more verbose, we could go with something like "Add link from clipboard".
I was going to suggest we use an icon from the WP icon set, but it looks like we don't have one for "clipboard" so let's just use the Gridicons version for now (
That would make sense — tapping on the cell should act the same as tapping on a search result 👍 |
Thanks for taking the time to address these questions, @iamthomasbishop . I appreciate it. :) |
I published some videos and screenshots in the Draft PR if you would be so kind and take a look, @iamthomasbishop , and others. 🙏 |
Is your feature request related to a problem? Please describe.
Whenever the user opens the settings for a block that can be linked to a URL (Image, Button), the URL in the clipboard is pasted automatically in the
Link to
field. In order to remove that automatically link, they need to tapLink to
and then request a removal. This behavior is unexpected for the user and has the potential to expose sensitive information inadvertently posing a security issue.Screenshot
Describe the solution you'd like
The desired solution would introduce the following changes:
Link to
field will NOT be auto-populatedLink to
screen opens a new option will be added below the input fieldFrom Clipboard
From Clipboard
option the input field is populated with the contents of the clipboardThe design flow describes how flow would look like with the suggested changes.
Describe alternatives you've considered
The following alternative solutions have been considered
Alternative 1
Alternative 2
Additional context
Internal ref:
pb3aDo-16U-p2#comment-2014
The text was updated successfully, but these errors were encountered: