-
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
Not possible to embed Cloudup links #1233
Comments
Thought it was a bug, then relabelled because I realize this probably has to do with what oembeds WordPress supports. Which means it might be an upstream issue? |
Cloudup is a supported oEmbed in core: https://github.com/WordPress/WordPress/blob/3a19079/wp-includes/class-oembed.php#L96 I was able to verify this in my testing. Looking at the response received from the oEmbed proxy endpoint, it returns a valid result: {
"version":"1.0",
"type":"photo",
"title":"Screen Shot",
"url":"https:\/\/cldup.com\/uKKtVAFSle-900x900.png",
"provider_name":"Cloudup",
"provider_url":"https:\/\/cloudup.com",
"width":900,
"height":346,
"thumbnail_url":"https:\/\/cldup.com\/uKKtVAFSle-1200x1200.png",
"thumbnail_width":1200,
"thumbnail_height":462,
"author_name":"Gabriel Maldonado"
} However, looking at the implementation of the Embed block, it checks for the presence of an https://github.com/WordPress/gutenberg/blob/5eceb50/blocks/library/embed/index.js#L128 We should consider enhancing the Embed block to render supported Related: #816, cc @notnownikki Aside: Cloudup is also registered as a standalone embed block variant: https://github.com/WordPress/gutenberg/blob/5eceb50/blocks/library/embed/index.js#L204 |
Ok I'll take a look at this and make a list of any other content types we might have to extend things for. |
Fix for photo embeds is up for review here #1334 |
Fixed by #1334 |
There are also other types like |
Per 2.3.4.2 of the oEmbed spec, the gutenberg/blocks/library/embed/index.js Lines 99 to 100 in af63d4e
The |
When pasting a Cloudup URL into the embed content block in a post, does not work and displays the message
Sorry, we could not embed that content.
Steps to reproduce:
1 - Go to your Dashboard > Gutenberg > New post
2 - Click on the "+" add content button > Scroll down to "Embed" type of content > Click on "Cloudup"
3 - Paste a Cloudup URL and click
Embed
. Example URL: https://cloudup.com/cPWc0cgxWpyImage of the issue
The text was updated successfully, but these errors were encountered: