jsp FCKeditor 如何将后台修改新闻的内容读取到fckeditor的编辑区域?

trycome 2008-06-12 10:35:54
jsp FCKeditor 如何将后台修改新闻的内容读取到fckeditor的编辑区域?
解压fckeditor后的_samples目录中的例子,找不到JSP的 ,有ASP,php.晕啊!
...全文
944 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
itopme 2011-09-07
  • 打赏
  • 举报
回复
我也在使用这个... 想问 楼主有了方法了吗?
it_1987 2009-09-01
  • 打赏
  • 举报
回复
结婚估计科技
javanewlife 2008-06-13
  • 打赏
  • 举报
回复
你那们写时没有加入 Fckeditor.tld 文件?
trycome 2008-06-12
  • 打赏
  • 举报
回复
<%=model.getContent()%> 是fckeditor 的方法吗 ? 那怎么根据ID取数据库记录?
trycome 2008-06-12
  • 打赏
  • 举报
回复
我是FCKeditor自定义标签 调用的
trycome 2008-06-12
  • 打赏
  • 举报
回复
<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")%>"> 是这个吗? 这个没用 没有在编辑区域显示
jastby 2008-06-12
  • 打赏
  • 举报
回复
对,可能是 input 也 可能是 textarea

<textarea ..... ><%=model.getContent()%></textarea>

主要看你怎么 调用 fck 的
chjx1982 2008-06-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 jastby 的回复:]
你初始化fck的时候 有个隐藏的表单域的 你把 内容赋值给 这个隐藏的表单域 就可以了
[/Quote]
<INPUT type="hidden" name="content1" value="<%=model.getContent()%>">
应该有个这样的东西的
jastby 2008-06-12
  • 打赏
  • 举报
回复
你初始化fck的时候 有个隐藏的表单域的 你把 内容赋值给 这个隐藏的表单域 就可以了
trycome 2008-06-12
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 javanewlife 的回复:]
<fck:editor ... > <%=这里直接写内容就行%> </fck:editor>
[/Quote]

不行完全没显示

<INPUT type="hidden" name="content1" value=" <%=(String)colValue.get("content")%> ">
这样可以 但不是显示在FCKEditor编辑区域内,出现在编辑区域外 ...字段内容 .... "/>
水瘦山寒 2008-06-12
  • 打赏
  • 举报
回复
<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>
javanewlife 2008-06-12
  • 打赏
  • 举报
回复
<fck:editor ... ><%=这里直接写内容就行%></fck:editor>

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧