WP WYSIWYG has a default function to embed a youtube or vimeo iframe via simple URL.
Issues:
Not responsive by default
Wraps in a <p> tag
Our responsive divs get stripped on future Visual edits.
Solution:
Extend the default function with this script that looks for the respective iframes to wrap them in a responsive <p class="responsive-media" style="padding-bottom: 56.25%"> tag.
WP WYSIWYG has a default function to embed a youtube or vimeo iframe via simple URL.
Issues:
<p>
tagSolution: Extend the default function with this script that looks for the respective iframes to wrap them in a responsive
<p class="responsive-media" style="padding-bottom: 56.25%">
tag.