08-06
14
FCKeditor编辑器上传按钮不好使
作者:Java伴侣 日期:2008-06-14
情况:当把目录/editor和fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml四个文件放置在根目录下,此时按钮正常,新建文件夹FCKeditor,把上述文件放置其中,并设置 oFCKeditor.setBasePath("FCKeditor/") ;,编辑器显示,但上传按钮不好使。
解决办法:检查web.xml,在其中加入
注意大小写哦
解决办法:检查web.xml,在其中加入
复制内容到剪贴板 程序代码
<servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SimpleUploader</servlet-name>
<url-pattern>/FCKeditor/editor/filemanager/upload/simpleuploader</url-pattern>
</servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SimpleUploader</servlet-name>
<url-pattern>/FCKeditor/editor/filemanager/upload/simpleuploader</url-pattern>
</servlet-mapping>
注意大小写哦
评论: 0 | 引用: 0 | 查看次数: 544
发表评论