提交 fc1bf979 编写于 作者: C campaign

修改ie67下的自动寻址问题

上级 175ca73b
......@@ -15,4 +15,6 @@ test( '路径查找测试', function () {
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', 'ueditor.config.js' ), 'file://C:/webroot/ueditor/_examples/', '本地路径-windows-当前目录2' );
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', '../ueditor.config.js' ), 'file://C:/webroot/ueditor/', '本地路径-windows-父目录1' );
equal( UE.getUEBasePath( 'file://C:\\webroot\\ueditor\\_examples\\completeDemo.html', './../ueditor.config.js' ), 'file://C:/webroot/ueditor/', '本地路径-windows-父目录2' );
equal( UE.getUEBasePath( 'http://www.baidu.com/ueditor/completedemo.html', '/ueditorphp/ueditor.config.js' ), 'http://www.baidu.com/ueditorphp/', 'WEB路径-当前目录下' );
} );
\ No newline at end of file
......@@ -2,7 +2,9 @@
##1.3.6
###bug修复
1.script/style标签内容,在ie下的编辑状态显示内容问题
1. script/style标签内容,在ie下的编辑状态显示内容问题
2. 修复预览窗口没有滚动条问题
3. 修复在ie67下自动寻址的问题
##1.3.5
......
......@@ -402,7 +402,9 @@
var basePath = confUrl;
if ( !/^[a-z]+:/i.test( confUrl ) ) {
if(/^(\/|\\\\)/.test(confUrl)){
basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/,'');
}else if ( !/^[a-z]+:/i.test( confUrl ) ) {
docUrl = docUrl.split( "#" )[0].split( "?" )[0].replace( /[^\\\/]+$/, '' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册