jsp FCKeditor 如何将后台修改新闻的内容读取到fckeditor的编辑区域?
解压fckeditor后的_samples目录中的例子,找不到JSP的 ,有ASP,php.晕啊!

解决方案 »

  1.   

    你初始化fck的时候  有个隐藏的表单域的  你把 内容赋值给 这个隐藏的表单域 就可以了
      

  2.   

    <INPUT type="hidden" name="content1" value="<%=model.getContent()%>">
    应该有个这样的东西的
      

  3.   

    对,可能是 input  也 可能是 textarea<textarea ..... ><%=model.getContent()%></textarea>主要看你怎么 调用 fck 的
      

  4.   

     <INPUT type="hidden" name="content1" value="<%=(String)colValue.get("content")%>"> 
    <FCK:editor id="content1" 
          width="100%" height="400" 
          fontNames="宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier 
    New;Tahoma;Times New Roman;Verdana" 
          
    imageBrowserURL="/quanfu/FCKeditor/editor/filemanager/browser/default/browser.html?
    Type=Image&Connector=connectors/jsp/connector"
       
    linkBrowserURL="/quanfu/FCKeditor/editor/filemanager/browser/default/browser.html?
    Connector=connectors/jsp/connector"
       
    flashBrowserURL="/quanfu/FCKeditor/editor/filemanager/browser/default/browser.html?
    Type=Flash&Connector=connectors/jsp/connector"
       
    imageUploadURL="/quanfu/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
       
    linkUploadURL="/quanfu/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
       
    flashUploadURL="/quanfu/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
       
      </FCK:editor></td>
    <INPUT type="hidden" name="content1" value="<%=(String)colValue.get("content")%>"> 是这个吗? 这个没用 没有在编辑区域显示
      

  5.   

    我是FCKeditor自定义标签  调用的
      

  6.   

    <%=model.getContent()%> 是fckeditor 的方法吗 ? 那怎么根据ID取数据库记录?
      

  7.   

    <fck:editor ... ><%=这里直接写内容就行%></fck:editor>
      

  8.   

    <tr>
    <td width="100%" bgcolor="#FFFFFF" colspan="2">
    <textarea id="content" name="content"
    style="WIDTH: 100%; HEIGHT: 400px">
    <bean:write name="newsForm" property="content" />
    </textarea>
    <script type="text/javascript">
     var oFCKeditor = new FCKeditor('content') ;
     oFCKeditor.BasePath = "/FCKeditor/" ;
     oFCKeditor.Height = 400;
     oFCKeditor.ToolbarSet = "Default" ; 
     oFCKeditor.ReplaceTextarea();
    </script>
    </td>
    </tr>
      

  9.   


    不行完全没显示<INPUT type="hidden" name="content1" value=" <%=(String)colValue.get("content")%>  "> 
    这样可以 但不是显示在FCKEditor编辑区域内,出现在编辑区域外      ...字段内容 .... "/>  ?  
      

  10.   

    你那们写时没有加入 Fckeditor.tld 文件?