`
shuaigg.babysky
  • 浏览: 555796 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

FCKEditor使用方法

阅读更多

1.在web.xml中添加servlet
 <servlet>
  <servlet-name>ConnectorServlet</servlet-name>
  <servlet-class>
   net.fckeditor.connector.ConnectorServlet
  </servlet-class>
  <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet-mapping>
  <servlet-name>ConnectorServlet</servlet-name>
  <!-- Do not wrap this line otherwise Glassfish will fail to load this file -->
  <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern>
 </servlet-mapping>
2.拷贝fckeditor到Web-ROOT文件夹下面
3.在src路径下添加fckeditors.properties文件,内容为
 connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction
4.在jsp中添加<%@ taglib prefix="FCK" uri="http://java.fckeditor.net" %>
5.新建一个表单,提交
 在表单里写上<FCK>标签
  <FCK:editor instanceName="chatContent">
      
  </FCK:editor>
 其中chatContent就是提交到servlet后getParameter("chatContent")的名字
6.全搞定。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics