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

Ueditor1.4.3版本开发中撞见的BUG,主要是多图上传中的在线管理

2014-06-23 17:05 295 查看
Ueditor1.4.3版本开发中遇见的BUG,主要是多图上传中的在线管理

我在使用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;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐