jsp FCKeditor 配置

需要两个文件
FCKeditor.zip和FCKeditor.java.zip

去掉在Java中使用不需要的文件,
在根目录下只保留editor目录,以及fckconfig.js、fckeditor.js、 fckstyles.xml、fcktemplates.xml。
删除目录/editor/_source,
删除/editor/filemanager /connectors下的所有文件,
删除/editor/filemanager/upload下的所有文件。

我将配置好的目录结构打包放在了附件里
供后来者参考

在需要调用fck的地方加入如下代码:
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %> 

<FCK:editor 
  id="content" basePath="/FCKeditor/" 
  imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" 
  linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" 
  flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?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>


你可能感兴趣的:(java,.net,jsp,xml,fckeditor)