embed through editor adds huge padding-bottom buffer on each embed
See original GitHub issueEmbeds added through the hallo editor seem to wrap iframes inside of the following div with an inline style:
<div style="padding-bottom: 56.25%;" class="responsive-object">
iframe
</div>
I had to override this in my project css with the following code:
.responsive-object {
padding-bottom: 0px !important;
}
Issue Analytics
- State:
- Created 8 years ago
- Reactions:6
- Comments:26 (13 by maintainers)
Top Results From Across the Web
wagtail hallojs editor video embed with padding-bottom
I had a huge padding under the embedded video. I couldn't find a place explaining how to integrate wagtail's editor generated html. There's...
Read more >How to add Padding in Html - Javatpoint
Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text...
Read more >How To Adjust the Content, Padding, Border, and Margins of ...
In this tutorial, you will learn about the CSS Box Model, a model used to refer to the content, padding, border, and margins...
Read more >How to Embed a YouTube Video in WordPress (4 ways)
The easiest way to embed YouTube videos in WordPress is to simply paste the URL onto your page/post edit screen. Make sure you're...
Read more >Media embed - CKEditor 5 Documentation
to embed media like in the following examples. You can also paste the media URL directly into the editor content and it will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s moved around a little but yes, it’s already there: http://docs.wagtail.io/en/latest/topics/writing_templates.html?highlight=responsive#responsive-embeds
I ran into this issue today and it sucked in about four hours of trying to figure out what is going on. I was referred to this thread. Creating an HTML element with an embedded style cannot be the correct solution can it? This HTML gets created when embedding a Youtube video using the Rich Text editor <div style="padding-bottom: 56.25%;" class="responsive-object"> - the only way I can get rid of this style is to override it in my CSS using !important which is terrible and basically freezes any future changes to this style.