I have this iframe
and JavaScript embedded in a post:
<iframe onload="fa_iframeresize.do(this);" src="https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL" scrolling="no" width="100%" style="padding:0px;margin:0px;border-width:0px;" frameborder="0">
</iframe>
<script type="text/javascript" src="https://example.com/iframeResizeMe.min.js.gz"></script>
But whenever I go to the visual editor the HTML gets changed tiny bit in such a way that example.com’s code can’t handle it anymore:
<iframe style="padding: 0px; margin: 0px; border-width: 0px;" src="https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL" width="100%" frameborder="0" scrolling="no">
</iframe>
<script type="text/javascript" src="https://example.com/iframeResizeMe.min.js.gz"></script>
Is there a way to keep the visual editor from changing a chunk HTML?
I tried the iframe extension but that didn’t really handle it properly. I’d also like to avoid creating my own plugin for this.
Ideally I’d like e.g. <!-- NOREFORMAT --><iframe></iframe><script></script><!-- /NOREFORMAT -->
.