配置环境:
FCKeditor_2.6.zip
FCKeditor-2.3.zip(java)
apache-tomcat-5.5.20
javascript版本配置过程:
详细的官方Guide:http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide
第一步:将FCKeditor_2.6解压放入project下的fckeditor包下面(注意路径)。
第二步:在project下的任意jsp或html中加入
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
第三步:在此页中加入
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>(具体页面省略)
javascript版本完成,详细见官方Guide.
java版本配置过程:
第一步:将FCKeditor下的editor包和fckconfig.js,fckeditor.afp,fckeditor.cfc,fckeditor.js,fckeditor.lasso,fckpackager.xml,fckstyles.xml,fcktemplates.xml拷贝到project下的FCKeditor包下。
第二步:在jsp页中使用
<%@ taglib prefix="FCKeditor" uri="http://fckeditor.net/tags-fckeditor" %>
第三步:在jsp页中写FCKeditor标签如下:
<FCKeditor:editor id="editorDefault"
imageBrowserURL="editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
flashBrowserURL="editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="editor/filemanager/upload/simpleuploader?Type=Flash"
>(
这一步要注意:如果editor等包并不在FCKeditor下的话,就需要写FCKeditor标签的basePath,而且各个URL都必须包括basePath。而bashPath的形式:/project/path/to/package/editor,亦即basePath包含了从webapp以后到editor包的所有路径)
第四步(补充):
在FCKeditor和webwork集成时,由于webwork先解析httpServletRequest,造成FCKeditor解析失败;而且FCKeditor虽解析中文路径,但在重命名上传文件时使用中文路径造成乱码而无法读取,所以舍去FCKeditor的上传功能。
在FCKconfig.js里改变
FCKConfig.LinkUpload = false;
FCKConfig.ImageUpload= false;
FCKConfig.FlashUpload = false;
分享到:
相关推荐
java配置fckeditor完整包,在线编辑器,fckeditor,java
配置fckeditor 的参考 web 配置文件
PHP配置FCKeditor完结版 相信搞PHP开发都用得到的好东西
php配置fckeditor2.6.6[借鉴].pdf
首先去官网下载FCKeditor2.6.6 多国语言版(可以搜索"FCKeditor 2.6.6, released on 15 February 2010")。下载地址
FCKeditor 这个开源的HTML 文本编辑器可以让web 程序拥有如MS Word 这样强大的编辑功能,.FCKeditor 支持当前流行的浏览器。
可以根据你的编程语言的不同而配置,是fckeditor的最后版本,可免费使用,功能强大
FckEditor中文配置手册详细说明,比较详细
NULL 博文链接:https://dpn525.iteye.com/blog/1912713
以前总是用eWebeditor作为网页编辑器,但总感觉用起来不爽,这次特从网上搜及并整理了FCKeditor在Java Web开发中的应用,希望对大家有所用。
3. 配置FCKeditor编辑器路径 在页面中,使用的是FCKeditor控件,该控件需要知道FCKeditor编辑器文件组的路径。有两种配置方法。 (1)配置web.config 在appSettings配置节中加入 <add key="FCKeditor:BasePath" ...
配置fckeditor 实现图片的上传
二、配置FCKeditor 按照FCKeditor的默认配置,可以完成一些常用的HTML可视化编辑工作,但在实际应用中,还需要对其做进一步的配置。FCKeditor控件的可配置属性不多,且配置后只能作用于一个单一实例。实际上,需要...
很详细Microsoft Visual Studio 2008与fckeditor的配置,
在JSP环境中如何来配置和使用fckeditor,详细说明,非常实用
如何配置FCKEDITOR? FCKEDITOR提供了一套用于定制其外观,特性及行为的设置集.主配置文件名为Fckconfig.js 你既可以编辑主配置文件,也可以自己定义单独的配置文件.配置文件使用JAVASCRIPT语法. 修改后,在建立编辑器...
1. 如果出现 XML request error: Internal Server Error,可能是由于 FCKeditor 的配置不正确导致的。请检查 Web.config 文件中的设置是否正确。 2. 如果出现上传失败的错误,可能是由于文件权限不正确导致的。请...
NULL 博文链接:https://leeleo.iteye.com/blog/366496
fckeditor在ssh2项目中的应用: 所需jar包 web.xml配置 fckeditor.properties属性文件 jsp文件