一、使用说明:
参考http://doodoo.blog.enorth.com.cn/article/126662.shtml文档,不过好像很简单。主要步骤:
1、下载:下载地址:http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845
我用的是最新版FCKeditor_2.3.2.zip(包含editor和配置信息在里面)和FCKeditor_2.3.zip(包含jar包和tld文件,web.xml文件),
1、在tomcat的webapp下建立FCKeditor文件夹,将FCKeditor_2.3.zip解压后的web文件夹中内容拷贝(包括_simples和WEB-INF两个文件夹),将src下的FCKeditor.tld拷贝到tomcat/webapp/FCKeditor/WEB-INF下。
2、将FCKeditor_2.3.2.zip解压后里面的editor文件夹和fckconfig.js,fckeditor.js,fckstyles.xml,fcktemplates.xml四个文件拷贝到tomcat/webapp/FCKeditor下面。
3、修改web.xml,添加
<taglib>
<taglib-uri>/TestFCKeditor</taglib-uri>
<taglib-location>/WEB-INF/FCKeditor.tld</taglib-location>
</taglib>
通过上面三步,即完成下载和配置,
访问:http://localhost:8080/FCKeditor/_samples/index.jsp,即可看到效果。
/*--------------------------------------------------------------------------------------*/
二、心得(from:http://mylog.lib.whpu.edu.cn/blogview.asp?logID=100)
1、把所有配置文件集中在editor文件下,有利于管理。
及把原fckeditor 下文件(fckconfig.js、fckeditor.js、fckeditor.asp、fckstyles.xml、fcktemplates.xml)copy到editor 下。
1、需要修改editor/jsfck_startup.js ,搜索
程序代码:
FCKScriptLoader.AddScript('../fckconfig.js')
改为
程序代码:
FCKScriptLoader.AddScript('fckconfig.js')
说明'fckconfig.js'与fckeditor.html 在同一目录
2、修改fckconfig.js'
增加
程序代码:
FCKConfig.BasePath="/../editor/"
将
程序代码:
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ;
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;
为
程序代码:
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'editor/fckstyles.xml' ;
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'editor/fcktemplates.xml' ;
或
程序代码:
FCKConfig.StylesXmlPath = FCKConfig.BasePath + 'fckstyles.xml' ;
FCKConfig.TemplatesXmlPath = FCKConfig.BasePath + 'fcktemplates.xml' ;
/*---------------------------------------------------------------------------------*/
在jsp使用FCKEditor浏览服务器图片时错误:XML request error: Internal Server Error(500)
我的这个错误的原因:没有xml解析器。
解决方法如下:
去
http://apache.justdn.org/xml/xalan-j/binaries/下载 xalan-j_2_7_0-bin-2jars.zip
解压后把 xalan.jar,serializer.jar拷贝到应用的lib目录下,ok。
参考资料:
1、
在jsp环境中配置使用FCKEditor2、
FCKeditor在线编辑器使用3、http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845
分享到:
相关推荐
FckEditor在线编辑器FckEditor在线编辑器FckEditor在线编辑器
fckeditor在线编辑器,可以直接使用
FCKEditor 在线编辑器,很好用的在线编辑器,大家都应该知道吧
PHP版经过精简的FCKEDITOR在线编辑器,希望能有用
FCKeditor在线编辑器教程
FCKeditor在线文本编辑器使用(pdf文件)
.NET版FCKeditor在线编辑器,含demo
fckeditor在线编辑器
这是我从官方下载源码进行整合后的fckeditor编辑器,里面整合了qq2008的表情,能很好的整合到你的项目中去
fckeditor在线文本编辑器, 可嵌入javascript中,用于页面文字、表情编辑,上传文件等,方便实用
FCKeditor编辑器hwp363FCKeditor编辑器hwp363FCKeditor编辑器hwp363 FCKeditor编辑器hwp363FCKeditor编辑器hwp363 FCKeditor编辑器hwp363
fckeditor 在线编辑器 源代码 myeclipse fckeditor在线编辑器myeclipse包括源代码
fckeditor 在线编辑器实例教程 导入直接使用
C# net fckeditor 在线编辑器 可上传本地图片
一个很强大的FCKEditor在线编辑器的例子
FCKeditor 在线编辑器实例