https://i.stack.imgur.com/JW26M.png
After setting the iframe's innerHTML using this line of code:
iframedoc.body.innerHTML = tinyMCE.activeEditor.getContent();
The styles for the elements within the iframe are contained in an inline style block. However, when I try to set the entire document using
document.write(iframedoc.body.innerHTML)
, I encounter an issue.
Upon doing so, the resulting display appears as such:
In particular, there seems to be a problem with displaying the background-image assigned to the #logo element. Here is its corresponding style:
#logo {
float: left;
width: 1170px;
height: 119px;
text-align: left;
margin: 0;
padding-left:335px;
background: url(allegroImg/bannerTop2.png) no-repeat;
}
Could someone help diagnose what might be causing this issue? Why isn't the background-image showing up as expected?