diff --git a/civic_europe/assets/js/wagtail-videoembed-fix.js b/civic_europe/assets/js/wagtail-videoembed-fix.js index ca211cda5..a240cf611 100644 --- a/civic_europe/assets/js/wagtail-videoembed-fix.js +++ b/civic_europe/assets/js/wagtail-videoembed-fix.js @@ -1,5 +1,13 @@ document.addEventListener('DOMContentLoaded', function () { - const videoEmbeds = document.querySelectorAll('.rich-text iframe') + const iframeSelectors = [ + '.rich-text iframe', + '.block-qa iframe', + '.block-col-1 iframe', + '.block-col-2 iframe', + '.block-col-3 iframe' + ] + + const videoEmbeds = document.querySelectorAll(iframeSelectors.join(', ')) for (const videoEmbed of videoEmbeds) { const parentOfEmbed = videoEmbed.parentElement