Commit 18d1004b authored by lixy's avatar lixy

域名

parent f66fdbfd
......@@ -20,7 +20,7 @@
* window.UEDITOR_HOME_URL = "/xxxx/xxxx/";
*/
// window.UEDITOR_HOME_URL = "/static/utf8-jsp/";
var URL = document.domain;
var getHost = function(url) {
var host = "null";
if(typeof url == "undefined"
......@@ -30,10 +30,10 @@
var match = url.match(regex);
if(typeof match != "undefined"
&& null != match)
host = match[1];
host = match[1]+"/";
return host;
}
var URL = getHost();
/**
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
*/
......@@ -445,9 +445,10 @@
function getUEBasePath(docUrl, confUrl) {debugger
function getUEBasePath(docUrl, confUrl) {
return URL;
return getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath());
// return getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment