UEditor中多图上传的bug

多图上传

预览:支持浏览器版本  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文件中

 

这样就可以debug调试程序了

 

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

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

 

posted @ 2014-09-18 13:46  雨中飞鹭  阅读(1217)  评论(0编辑  收藏  举报