Ueditor1.4.3版本多图上传中的在线管理BUG

来源:互联网 发布:vue写的案例源码 编辑:程序博客网 时间:2024/05/19 22:03

我在使用Ueditor1.4.3的过程中,发现多图上传中的在线管理的功能怎么的都不能显示图片,经过firebug的查看得知,是因为Ueditor1.4.3获取了图片的物理路径放在img标签中,既然已经知道了问题的所在,那么以下就是我解决方法,当然是修改Ueditor1.4.3的源码了,请见下面:
修改com.baidu.ueditor.hunter.FileManager方法:

private String getPath ( File file ) {        String path = file.getAbsolutePath();        //System.out.println("old:"+path);        String str=path.replace(this.rootPath.replaceAll("\\/", "\\\\"), "\\" );        //System.out.println("new:"+str);        return str;       }    

文章转自:http://www.iteye.com/topic/1134525

0 0
原创粉丝点击