点击右上角【Star】收藏本软件 ^_^

This commit is contained in:
thinkgem
2021-09-03 18:25:31 +08:00
parent bcebcdedc6
commit 572b529cf3
2 changed files with 24 additions and 11 deletions

View File

@@ -6759,15 +6759,28 @@ var fillCharReg = new RegExp(domUtils.fillChar, 'g');
langReadied(me);
}else{
utils.loadFile(document, {
src: me.options.langPath + me.options.lang + "/" + me.options.lang + ".js",
tag: "script",
type: "text/javascript",
defer: "defer"
}, function () {
UE.plugin.load(me);
langReadied(me);
});
try {
utils.loadFile(document, {
src: me.options.langPath + me.options.lang + "/" + me.options.lang + ".js",
tag: "script",
type: "text/javascript",
defer: "defer"
}, function () {
UE.plugin.load(me);
langReadied(me);
});
}catch(e){
// 未找到语言时,使用默认语言
utils.loadFile(document, {
src: me.options.langPath + "zh_CN/zh_CN.js",
tag: "script",
type: "text/javascript",
defer: "defer"
}, function () {
UE.plugin.load(me);
langReadied(me);
});
}
}
UE.instants['ueditorInstant' + me.uid] = me;