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 a formatted hyper link of an oEmbed provider is pasted, ask the user whether to paste or embed #27915

Closed
mipon opened this issue Dec 29, 2020 · 4 comments
Labels
[Block] Embed Affects the Embed Block [Status] Needs More Info Follow-up required in order to be actionable. [Type] Enhancement A suggestion for improvement.

Comments

@mipon
Copy link

mipon commented Dec 29, 2020

Is your feature request related to a problem? Please describe.
A recent version of Microsoft Edge has the built-in functionality that automatically creates a hyper link by copying a URL in the address bar (for details). The problem is for embeddable URLs. If the user unknowingly pastes it in the editor, a plain hyper link appears instead of an embedded iframe. The confusing part of this behavior is that if the copied URL is pasted in notepad, a plain URL is pasted instead of a hyper link normally. In fact, I mistakenly created an issue by thinking this is a bug.

This Microsoft Edge behavior affects the user experience regarding automatic embedding functionality that WordPress provides. End users with little experience with Microsoft Edge might think it is a fault of WordPress or never notice WordPress has such a feature that enables to embed contents by just pasting a single URL.

Describe the solution you'd like

  1. Monitor paste events.
  2. Do nothing if the pasted text includes multiple URLs.
  3. When a hyper link with a single URL is pasted and it is one of the oEmbed providers, do either of:
    a. only allow the URL to be pasted so that the automatic embedding process starts.
    b. ask the user to paste the hyperlink or the URL
@annezazu annezazu added [Block] Embed Affects the Embed Block [Type] Enhancement A suggestion for improvement. labels Dec 29, 2020
@jasmussen
Copy link
Contributor

Thank you for the ticket! Is this related to #21789? Potentially a duplicate?

@jasmussen jasmussen added the [Status] Needs More Info Follow-up required in order to be actionable. label Mar 5, 2021
@mipon
Copy link
Author

mipon commented Mar 5, 2021

Looks like it.

@jasmussen
Copy link
Contributor

Mind if I close that one in favor of the other? I'll be sure to link to yours from there so the feedback doesn't get lost.

@mipon
Copy link
Author

mipon commented Mar 5, 2021

No, I don't mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block [Status] Needs More Info Follow-up required in order to be actionable. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants