Requirements
In the following example you have to add a
<div>in the place where you want to add the iframe.<div id="log"></div>
<script>
window.addEventListener("CMP_SHOWN", function (e) {
document.getElementById('log').innerHTML = '';
}
});
window.addEventListener("SAVE", function (e) {
document.getElementById('log').innerHTML = '<iframe id="IFRAME_ID" src="IFRAME_SRC"></iframe>';
}
});
</script>