您的位置:首页 > 产品设计 > UI/UE

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

2015-04-08 12:23 232 查看
我在使用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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: