一、使用说明: 参考http://doodoo.blog.enorth.com.cn/article/126662.shtml文档,不过好像很简单。主要步骤: 1、下载:下载地址:http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845 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,添加
通过上面三步,即完成下载和配置, 访问: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 下。 程序代码:
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。 |
FCKeditor在线编辑器的使用
最新推荐文章于 2014-04-25 23:19:17 发布