解决帝国cms中后台编辑器在IE10下的兼容问题

admin 2024年1月16日17:49:51帝国cms技巧评论1,315 次浏览阅读模式

内容摘要

默认的FCK2.3.6在IE10中会有这个错误:SCRIPT438: 对象不支持“selectSingleNode”属性或方法fckeditorcode_ie.js, 行52 字符1021,现己解决查看IE10的脚本错误信息:

文章正文

默认的FCK2.3.6在IE10中会有这个错误:SCRIPT438: 对象不支持“selectSingleNode”属性或方法

fckeditorcode_ie.js, 行52 字符1021,现己解决

查看IE10的脚本错误信息:

 

SCRIPT438: 对象不支持“selectSingleNode”属性或方法

fckeditorcode_ie.js, 行52 字符1021

文件路径:e/admin/ecmseditor/infoeditor/editor/js/fckeditorcode_ie.js

然后找到52行代码

1

FCKXml.prototype={LoadUrl:function(A){this.Error=false;var B=FCKTools.CreateXmlObject('XmlHttp');if (!B){this.Error=true;return;};B.open("GET",A,false);B.send(null);

 

在B.open("GET",A,false);和B.send(null);之间插入如下代码

1

try {B.responseType = "msxml-document";} catch (e){};

 

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月16日17:49:51
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0116/17881.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: