-
Notifications
You must be signed in to change notification settings - Fork 847
Extended Blocks: add Loom as oEmbed provider #17137
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
Conversation
|
Scheduled Jetpack release: October 6, 2020. E2E results is available here (for debugging purposes): https://jetpack-e2e-dashboard.herokuapp.com/pr-17137 Thank you for the great PR description! When this PR is ready for review, please apply the |
|
Caution: This PR has changes that must be merged to WordPress.com |
creativecoder
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, I tested with different versions...
WP 5.5 plus latest Gutenberg plugin - works as expected
WP 5.5 - works as expected
WP 5.4 (previous version) - registerBlockVariation is available, but the embed block did not use variations in this version, so the block isn't available. But the embed still works through the embed block, or by pasting a loom link.
I've added a fallback for versions lower than 5.5, using the |
Can you provide the Loom resource (URL), please? I think it was a matter of your testing flow. Keep in mind that the HTML markup is cached and if it was not properly generated in the first attempt it will keep returning the wrong code beyond the app adds the Loop provider properly. |
I think that was it. My issues were resolved when I switched to a different test site. The loom url I'm using for testing is https://www.loom.com/share/0281766fa2d04bb788eaf19e65135184 |
|
Do you happen to have some background on this addition?
My first thought would be that the embed addition would be a good fit for Jetpack / WordPress.com, without a UI, until the embed makes it way into Core. If we decide to add a UI in the editor, maybe we should do it for all our other embeds as well? |
It works for me. 👍 |
|
Thanks, Jeremy.
We discussed a little bit about this and concluded adding this provider to Jetpack could be the whole implementation faster. It doesn't mean that we couldn't start adding Loom straight in the core but maybe in the following step?
Well... maybe in the past the block editor didn't exist :-D.
I didn't want to edit this file because it belongs to
Yeah, but it's for Simple sites, correct? In that case, we'll need to add the provider to two different files?
That was our first thought too, but then we changed in order to reduce the landing time. Again, we can start to work on moving the whole implementation to the core. It means, if I'm not wrong, add the provider to WordPress core and also add the block variation in Gutenberg core. Is it correct?
Do you mean to add a block variation for all oEmbed blocks in Jetpack? If so, I'd happy to take over this task. |
|
Related discussion:
👍
Correct, unless we were to bring files in sync in the future. Here was an exploration: D27182-code
Exactly. Adding an embed to Core is usually done in two patches these days: one to add it to Gutenberg, one to add it to Core. Here is an example:
Yes, exactly. If we think it's a valuable addition for the Loom provider, and if you've developed the basic structure for one provider, we may as well add more in the future. |
Co-authored-by: Jeremy Herve <[email protected]>
Co-authored-by: Jeremy Herve <[email protected]>
…omattic/jetpack into update/add-loom-embed-extended-block
jeherve
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well. I only have one suggestion.
|
r214751-wpcom |


This PR adds loom.com as a new oembed provider, allowing embed resources from this service.
Changes proposed in this Pull Request:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Loomvariation among block options.core/embedblock,Loomvariation.Confirm it works with WordPress greater and lower than 5.5
Proposed changelog entry for your changes: