UEditor中多图上传的bug

论坛 期权论坛 脚本     
匿名技术用户   2020-12-30 10:27   28   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文件中

这样就可以debug调试程序了

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

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

转载于:https://www.cnblogs.com/estellez/p/3979088.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP