-
Notifications
You must be signed in to change notification settings - Fork 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
Gutenberg: audit that we can render all embeds on the Jetpack and wpcom list #27498
Comments
Hi @gwwar I had a look at WP.com embeds both from the source and from en.support and tested against the wpcalypso.wordpress.com/gutenberg for a simple site comparing to regular calypso editor. 17 embeds behaved the same, 8 had issues or didn't behave the same, and 12 of them I wasn't sure about how to test or work out the expected behaviour. The full list with example URLs/shortcodes is here: oEmbeds Working same as Calypso Editor
oEmbeds Different to Calypso Editor or Not Working
Unknown oEmbeds
|
Couple of things related to the embed block and endpoint it uses :)
This is because of the security settings on the sandboxing iframe. Facebook wants to change things in the top level window, and the iframe stops that.
Do you can the "this can't be embbeded" type error? Or do you see no preview? There might be a couple of different causes for this, as it's rendered by a Jetpack shortcode instead of one of the allowed providers.
This should work fine with the Custom HTML block? That's the scripts issue in #27486 (comment) If you're getting a blank preview for Pinterest too, it's the same issue. Although, I just had a report from someone on twitter saying her Pinterest embeds stopped working, so perhaps something else is going on with Jetpack here? |
Further investigation into the Intsagram embed, and once the |
Fix for the Instagram issue is at WordPress/gutenberg#10434 |
Fix for the Instagram issue has been merged. |
Thanks @alisterscott and @notnownikki this is super helpful! We'll make cards for the remaining items. |
@gwwar: would you like me to create cards? I’m happy to. Is it one card for each item that doesn’t work the same at present added to backlog in project? |
Oh sure if you like! Yes, one card per non-working embed. We can add them to https://github.com/orgs/Automattic/projects/34 in "Backlog" at normal priority. Thanks @alisterscott 💖 |
Thanks for your feedback @notnownikki
I couldn't find this block, do you know what it's called? |
@notnownikki I tried editing a normal block in HTML mode and adding the Google Maps code but it then shows a message to convert to block which then removes the block - raised as #27003 |
@gwwar on the audio block it says you can select a file from your media library - do you know how to actually do that though? I can't work out how and maybe it is obvious? |
I've raised the following issues:
The following are known unknowns:
The rest are testing well 👍 |
Going through that list @alisterscott Photobucket: doesn't work in core at all. In the classic editor, Tinymce picks it up as an image URL and converts it to an image. However, the oEmbed endpoint at Photobucket no longer exists. CollegeHumor: works for me? What are you seeing when you try to embed it? I get a video of two angry looking guys :) Reverbnation: no longer supports oEmbed. Their endpoint, https://www.reverbnation.com/oembed , is no longer there. Amazon: Doesn't work in the classic editor either, and Amazon is reporting that the oEmbed service is not available. Really, the Photobucket, Reverbnation and Amazon providers shouldn't be in the supported list any more. The case where oEmbed is not offered any more isn't covered by the block, and can result in an empty block with just a caption, so I'll take a look at that too. There are a whole bunch of different ways that the proxy API can tell us it can't be embedded, so... that's "fun" 😆 |
PR to properly report the "can't be embedded" message for cases where oEmbed has an invalid API: WordPress/gutenberg#10467 |
Hi @notnownikki With collegehumour I get an empty block: and a console error:
that happens on a self-hosted core site also so I think we can no worry about it |
I went through the Jetpack list of shortcodes and embeds and these work the same as WordPress.com so nothing behaved differently: https://jetpack.com/support/shortcode-embeds/ |
GitHub Gist doesn't show preview in Gutenberg: #27782 |
@alisterscott GitHub embeds assume that jQuery is already loaded, and we only load the scripts that the embed response returns. I think either the response should include jQuery, or perhaps we make jQuery load for every embed preview. Either way, we could fix this on the API end by returning jQuery in |
Closing this out, since it looks like folks did a great job. If folks find issues with embeds, please file new issues! |
Follow up to #27486. Let's make sure the oembed/1.0 namespace can serve all of our expected embeds, those whitelisted in core, wpcom and jetpack.
As @notnownikki noted:
The text was updated successfully, but these errors were encountered: