首页 > 其他 > 详细

UEditor中多图上传的bug

时间:2014-09-18 14:40:04      阅读:400      评论:0      收藏:0      [点我收藏+]

多图上传

预览:支持浏览器版本  IE8以上

在线管理:由于存在bug,显示不了

 ueditor-1.1.1.jar解压后找到FileManager

1.修改com.baidu.ueditor.hunter.FileManager类下的一个方法,修改如下:

源代码:

private String getPath ( File file ) {
String path = file.getAbsolutePath();
return path.replace( this.rootPath, "/" );
}

修改为:

private String getPath ( File file ) {
   String path = file.getAbsolutePath();
   String str=path.replace(this.rootPath.replaceAll("\\/", "\\\\"), "\\" );
   return str;
}

2.在项目中建立一个FileManager.java类,用反编译工具打开.class文件,粘贴到java文件中

 bubuko.com,布布扣

这样就可以debug调试程序了

 

3.将编译后的.class 文件替换原来jar包里面的FileManager.class文件,打包成jar文件

直接压缩文件夹,压缩文件会多一层,所以直接全选文件里的文件,右键,添加压缩文件,更改文件后缀名字 ,行的jar 包就好了

bubuko.com,布布扣

 

UEditor中多图上传的bug

原文:http://www.cnblogs.com/estellez/p/3979088.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!