gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Wrong behaviour when inserting URL's

Open orcas-apisch opened this issue 8 years ago • 5 comments

When trying to paste an URL in Gutenberg in a standard block it tries to embed usually followed by some error "Unable to embed ...".

Workaround: type any char before pasting the URL and then delete this char afterwards. Now it is possible to create a proper link using the toolbar.

orcas-apisch avatar Oct 05 '18 09:10 orcas-apisch

May I ask the exact URL you tried to paste (or an example of a similar one that does not work for you)?

designsimply avatar Oct 05 '18 15:10 designsimply

I tried several URL's like http://xxxx and https://: wp_gutenberg

orcas-apisch avatar Oct 05 '18 15:10 orcas-apisch

Ok, tested again. This only happens when pasting to a blank block of type "paragraph".

orcas-apisch avatar Oct 05 '18 16:10 orcas-apisch

I tested pasting https://www.google.com/ (which I saw in your screenshot) into an empty block and found that it caused an embed block to form and I did not see an "Unable to embed" error—tested using WordPress 4.9.8 and Gutenberg 4.5.1 master @ e4fd51cb5 using Firefox 63.0.3 on macOS 10.13.6. I think this has been resolved, but please reply back if you're still having any trouble!

designsimply avatar Nov 28 '18 22:11 designsimply

I just tested with Gutenberg 4.6.1 and Firefox on Linux. The behaviour is the same as before.

orcas-apisch avatar Dec 01 '18 20:12 orcas-apisch