Generally I am against the use of iframes, but it solved a particular problem of mine.
The thing is that I have a tinyMCE-editor at a webpage. After the user have ma
You can write to the document of an iframe like this:
const html = 'foo'; const iframeDocument = document.querySelector('iframe#foo').contentDocument; const content = `${html} `; iframeDocument.open('text/html', 'replace'); iframeDocument.write(content); iframeDocument.close();