FCKeditor是sourceforge
首先在官方網站下載fckeditor
修改如下內容:
<servlet
<servlet
<url
/editor/filemanager/browser/default/connectors/jsp/connector
</url
</servlet
<servlet
<servlet
<url
</servlet
修改結果:
<servlet
<servlet
<url
/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector
</url
</servlet
<servlet
<servlet
<url
</url
</servlet
// 文件開頭處加入
//要使用的地方加入
<FCK:editor id="content" basePath="/FCKeditor/"
imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser
Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser
Connector=connectors/jsp/connector"
flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser
Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
this is default content :)
</FCK:editor>
啟動服務器測試…成功後
完成
其它問題
在struts+spring+hibernate中使用
The output format must have a ‘{}content
錯的情況
安全問題
假如在前台讓普通用戶也能使用FCKEditor
到此安裝FCKeditor就完成了
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19843.html