fckeditor jsp配置

FCKeditor是一款跨平台的在线编辑器,到我发布本文,FCKeditor的官方版本已经发展到了2.6.4
点击进入  官网
      FCKeditor 2.6 Beta 下载地址: sourceforge.net/project/downloading.php
      FCKeditor.Java 下载地址: http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=129511&release_id=348486
下载之后分别为: FCKeditor_2.6b.zip 和  FCKeditor-2.3.zip 将它们分别解压。
      将解压后的FCKeditor_2.6b文件夹下的fckeditor拷贝到test目录下,并重新命名为FCKeditor。
      将解压后的FCKeditor-2.3文件夹下的web下的WEB-INF拷贝到test目录下。
      将FCKeditor-2.3文件夹下src下的FCKeditor.tld拷贝到test目录下的WEB-INF下。
    
改之前:
35   <init-param>
36    <param-name>enabled</param-name>
37    <param-value></param-value>
38   </init-param>
改之后:
37    <param-value></param-value>
    
改之前:
66 <servlet-mapping>
67    <servlet-name>Connector</servlet-name>
68    <url-pattern>/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
69 </servlet-mapping>
70 
71 <servlet-mapping>
72    <servlet-name>SimpleUploader</servlet-name>
73    <url-pattern>/editor/filemanager/upload/simpleuploader</url-pattern>
74 </servlet-mapping>
改之后:
68    <url-pattern>//editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
73    <url-pattern>//editor/filemanager/upload/simpleuploader</url-pattern>
     修改第50行的FCKeditor.BasePath。
改之后:
50 FCKeditor.BasePath = 'FCKeditor/' ;(注意:FCKeditor之前是没有/的)
     修改FCKConfig.DefaultLanguage、FCKConfig.LinkBrowserURL、FCKConfig.ImageBrowserURL、FCKConfig.FlashBrowserURL、
改之后:
FCKConfig.AutoDetectLanguage = false ;  :如果这里没有改为false编辑器是不会显示为中文的
FCKConfig.DefaultLanguage   = 'zh-cn' ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + ‘filemanager/browser/default/browser.html?Connector=connectors/jsp/connector’;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + ‘filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector’;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + ‘filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector’;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=File' ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Image' ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/simpleuploader?Type=Flash' ;

你可能感兴趣的:(jsp,职场,休闲,在线编辑器)