i download javascript texteditor but it gives me this error:
document.getElementById(...').contentWindow.document.body.innerHTML is null or empty opject
this because the file is .asp but when convert it to .htm
it dosent give error
how to resolve it
the functio that contain this line is:
function enableDesignMode(rte, html) {
if (browser.isIE55up) {
frames[rte].document.designMode = "On";
setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
}
else {
document.getElementById(rte).contentDocument.designMode = "on"
setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
setTimeout("document.getElementById('" + rte + "').contentDocument.designMode = 'on';", 200);
}
}
document.getElementById(...').contentWindow.document.body.innerHTML is null or empty opject
this because the file is .asp but when convert it to .htm
it dosent give error
how to resolve it
the functio that contain this line is:
function enableDesignMode(rte, html) {
if (browser.isIE55up) {
frames[rte].document.designMode = "On";
setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
}
else {
document.getElementById(rte).contentDocument.designMode = "on"
setTimeout("document.getElementById('" + rte + "').contentWindow.document.body.innerHTML = '" + html + "';", 100);
setTimeout("document.getElementById('" + rte + "').contentDocument.designMode = 'on';", 200);
}
}
Comment