再次请教在线编辑器的显示问题!
已经将使用rte.js的在线编辑器编辑过的内容保存到了数据库中,但我怎么样将已保存的数据读出后显示在在线编辑器的编辑框中?
我的代码是:
<script>
function insertHtml(htmlCode)
{
var win=window.content_html.idEditbox.document;
window.content_html.idEditbox.focus();
win.selection.createRange().pasteHTML(htmlCode)
}
</script>
<body >
<IFRAME SRC=edit.htm id=content_html width=100% height=400></IFRAME>
<textarea name="content" id="content" style="display:none"><font color="#FF0000">测试数据</font></textarea>
<IMG style=display:none onload="javascript:insertHtml(document.all.content.value)" src="/ok.gif">
</body>
</html>
编辑器中没有内容!别说数据库中的内容了,就是随便写点什么也没有显示,救急啊!