当前位置: 代码迷 >> ASP.NET >> htmleditor在线编辑器 怎么把数据显示到编辑器框里
  详细解决方案

htmleditor在线编辑器 怎么把数据显示到编辑器框里

热度:7102   发布时间:2013-02-25 00:00:00.0
htmleditor在线编辑器 如何把数据显示到编辑器框里
<textarea id="content" name="content" style="display:none"></textarea>
<iframe id="myEditor" src="Edit/editor.htm?id=content&ReadCookie=0" frameborder="0" scrolling="no" width="621" height="457" ></iframe>

我已经把数据 从数据库里取出来了 怎么把数据显示在编辑框里
求教 懂的

------解决方案--------------------------------------------------------
设置content.value="你从数据库读取到的值"; 
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx

------解决方案--------------------------------------------------------
content.text=你的数据
或者就是
content.Value=你的数据
------解决方案--------------------------------------------------------
document.getElementById("myEditor").contentWindow.document.body.innerHTML = 内容.