fckeditor配置问题
问题描述:访问自己的页面能显示其他的控件,如submit按钮,就是不显示fckeditor控件。请大家指出我的问题,谢谢。
java版本FCKeditor-2.3
主要文件版本FCKeditor-2.3.2
我的配置情况:
1。文件目录结构:
Myapp
FCKeditor
Editor/
4个必须的配置文件
WEB-INF
Lib/2个jar文件在这里
FCKeditor.tld
Web.xml
Test.jsp
2。web.xml文件中,修改 <servlet-mapping> 里的内容为:
<servlet-mapping>
<servlet-name> Connector </servlet-name>
<url-pattern> /FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector </url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> SimpleUploader </servlet-name>
<url-pattern> /FCKeditor/editor/filemanager/upload/simpleuploader </url-pattern>
</servlet-mapping>
添加
<taglib>
<taglib-uri> /FCKeditor </taglib-uri>
<taglib-location> /WEB-INF/FCKeditor.tld </taglib-location>
</taglib>
3。修改页面fckconfig.js
FCKConfig.LinkBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/jsp/connector " ;
FCKConfig.ImageBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector " ;
FCKConfig.FlashBrowserURL
= FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector " ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=File ' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Flash ' ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Image ' ;
4。修改页面fckeditor.js
this.BasePath = '/FCKeditor/editor/ ' ;
5。 test.jsp
<%@ page contentType= "text/html; charset=gb2312 " %>
<%--@ taglib uri= "/WEB-INF/FCKeditor.tld " prefix= "FCK " --%>
<%@ taglib uri= "http://fckeditor.net/tags-fckeditor " prefix= "FCK " %>
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 无标题文档 </title>
</head>
<body>
<form action= "show.jsp " method= "post " target= "_blank ">
<FCK:editor id= "content "