<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>我已经把数据 从数据库里取出来了 怎么把数据显示在编辑框里
求教 懂的 

解决方案 »

  1.   

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

  2.   

    content.text=你的数据   
    或者就是
    content.Value=你的数据
      

  3.   

    document.getElementById("myEditor").contentWindow.document.body.innerHTML = 内容.
      

  4.   

    <textarea id="content"  runat="server" name="content" style="display:none"></textarea>后台:
    content.value="值";
      

  5.   

    我用document.getElementById("content").value = "数据的值"
    让后把 style去掉了 看到 数据 是设置到content里面了 但是编辑器 没有去content里面取值显示 ,不知道为什么
      

  6.   

    3楼的方法 编辑器 不见了 不知道为什么
    ==>有可能你的编译器里面还嵌有iframe应该找那到个mode为design的iframe
      

  7.   

    我看到 editor.js 里面都是这样赋值的
    _this.iframe.contentWindow.document.body.innerHTML =“数据”我的页面上
    document.getElementById("myEditor").contentWindow.document.body.innerHTML =“数据”
    还是不行 没想法了