You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please accept my apologies if this already achieveable through a setting or is reported elsewhere. I have looked in the code and in the repo for some thing similar, but I could have missed it.
On a current project, we have had to introduce a workaround to the codebase for the lack of wrapper element from Brightcove video block in Block Editor powered content. When the Brightcove video is added to the page, it merely adds the embed <iframe> player to the page.
The following is the snippet we used as a workaround;
This lack of container element means handling responsiveness related work in the theme more difficult.
In addition, this workaround resolves adjusting the Brightcove player to fit the public-facing side of the website. The lack of container also means that the WordPress admin experience can be less than optimal as well, as there is no clean and effective way to match a selector to the Brightcove video.
Steps to Reproduce
N/A
Expected Preferred behavior
As Brightcove video player is an additional embed option, I believe it would be beneficial if markup similar to YouTube and other embeds was adopted in both the WP Admin and public-facing sides.
Some thing akin to;
<figureclass="wp-block-embed-brightcove wp-block-embed is-type-video is-provider-brightcove wp-embed-aspect-16-9 wp-has-aspect-ratio"><divclass="wp-block-embed__wrapper"><!-- brightcove video embed here --></div></figure>
This would be make adjusting the Brightcove video player to match the responsiveness of the website much simpler and provide opportunities to ensure the experience of the Brightcove block can be adjusted for Block Editor in WP Admin.
Environment information
WordPress version: 5.4.2
Not using the official Gutenberg plugin.
The text was updated successfully, but these errors were encountered:
Describe the bug
Please accept my apologies if this already achieveable through a setting or is reported elsewhere. I have looked in the code and in the repo for some thing similar, but I could have missed it.
On a current project, we have had to introduce a workaround to the codebase for the lack of wrapper element from Brightcove video block in Block Editor powered content. When the Brightcove video is added to the page, it merely adds the embed
<iframe>
player to the page.The following is the snippet we used as a workaround;
This lack of container element means handling responsiveness related work in the theme more difficult.
In addition, this workaround resolves adjusting the Brightcove player to fit the public-facing side of the website. The lack of container also means that the WordPress admin experience can be less than optimal as well, as there is no clean and effective way to match a selector to the Brightcove video.
Steps to Reproduce
N/A
ExpectedPreferred behaviorAs Brightcove video player is an additional embed option, I believe it would be beneficial if markup similar to YouTube and other embeds was adopted in both the WP Admin and public-facing sides.
Some thing akin to;
This would be make adjusting the Brightcove video player to match the responsiveness of the website much simpler and provide opportunities to ensure the experience of the Brightcove block can be adjusted for Block Editor in WP Admin.
Environment information
The text was updated successfully, but these errors were encountered: