请问如何把从数据库读取出来的数据到FCKeditor(在线编辑器).
 <%
         FCKeditor WebEdit;
         WebEdit = new FCKeditor( request, "content" ) ;
         WebEdit.setBasePath( "/article/webedit/" ) ;
         WebEdit.setHeight("400");
         WebEdit.setWidth("650");
         out.println(WebEdit.create() ) ;
        %>

解决方案 »

  1.   

    我的是这样的
    <textarea id="kcontent" name="kcontent" style="width: 100%; height: 400px"><%=kcontent%></textarea><script type="text/javascript">
    <!--
    var oFCKeditor = new FCKeditor('kcontent') ; 
    oFCKeditor.BasePath = "../../../FCKeditor/" ; 
    oFCKeditor.Height = 270; 
    oFCKeditor.ToolbarSet = "Default";
    //Basic
    oFCKeditor.ReplaceTextarea();
    //-->
    </script>
      

  2.   

    <%
    FCKeditor oFCKeditor ;
    oFCKeditor = new FCKeditor( request, "content" ) ;
    oFCKeditor.setHeight ("120");
    oFCKeditor.setBasePath( BASE_PATH+"FCKeditor/" ) ;
    oFCKeditor.setToolbarSet("MsgSimple");
    oFCKeditor.setValue( setValue);//这里是要在编辑器里显示的文本
    out.println( oFCKeditor.create() ) ;
    %>