zoukankan      html  css  js  c++  java
  • 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 包就好了

  • 相关阅读:
    博途Portal TIA(PLC) + Scout (独立)驱动配置 CU320 + PM240-2
    TM41 修改分辨率
    用户注册
    用户名的登录认证
    CSS
    HTML
    python常用模块
    面对对象进阶
    面对对象之绑定方法和非绑定方法
    面对对象之封装
  • 原文地址:https://www.cnblogs.com/estellez/p/3979088.html
Copyright © 2011-2022 走看看