多图上传

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

 UEditor中多图上传的bug

这样就可以debug调试程序了

 

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

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

UEditor中多图上传的bug

 

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2021-04-17
  • 2022-01-04
  • 2021-10-03
  • 2021-12-14
  • 2021-10-06
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
相关资源
相似解决方案