标签:ckeditor ckeditor乱码处理 ckfinder上传 ckeditor和ckfinder整合
下载地址CKEditor<enabled>true</enabled> <baseURL>/CKEditorAndCKFinder/CKFinderJava/userfiles/</baseURL>步骤三:在web.xml文件,配置Servlet
<servlet> <servlet-name>ConnectorServlet</servlet-name> <servlet-class>com.ckfinder.connector.ConnectorServlet</servlet-class> <init-param> <param-name>XMLConfig</param-name> <param-value>/WEB-INF/config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ConnectorServlet</servlet-name> <url-pattern> /ckfinder/core/connector/java/connector.java </url-pattern> </servlet-mapping> <filter> <filter-name>FileUploadFilter</filter-name> <filter-class>com.ckfinder.connector.FileUploadFilter</filter-class> <init-param> <param-name>sessionCookieName</param-name> <param-value>JSESSIONID</param-value> </init-param> <init-param> <param-name>sessionParameterName</param-name> <param-value>jsessionid</param-value> </init-param> </filter> <filter-mapping> <filter-name>FileUploadFilter</filter-name> <url-pattern> /ckfinder/core/connector/java/connector.java </url-pattern> </filter-mapping> <session-config> <session-timeout>10</session-timeout> </session-config>步骤四:修改ckeditor/config.js文件(当前也可以是自己编写的js配置文件,上一篇介绍过)
config.filebrowserBrowseUrl = ‘/CKEditorAndCKFinder/ckfinder/ckfinder.html‘ ; config.filebrowserImageBrowseUrl = ‘/CKEditorAndCKFinder/ckfinder/ckfinder.html?type=Images‘ ; config.filebrowserFlashBrowseUrl = ‘/CKEditorAndCKFinder/ckfinder/ckfinder.html?type=Flash‘ ; config.filebrowserUploadUrl = ‘/CKEditorAndCKFinder/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files‘ ; config.filebrowserImageUploadUrl = ‘/CKEditorAndCKFinder/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images‘ ; config.filebrowserFlashUploadUrl = ‘/CKEditorAndCKFinder/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash‘ ; config.filebrowserWindowWidth = ‘1000‘; config.filebrowserWindowHeight = ‘700‘; config.language = "zh-cn" ;
CKEditor学习笔记3(CKEditor与CKFinder的Java整合)
标签:ckeditor ckeditor乱码处理 ckfinder上传 ckeditor和ckfinder整合
原文地址:http://blog.csdn.net/com185272358/article/details/24814009