gpt4 book ai didi

FCKEditor 在 IE10 中不起作用

转载 作者:行者123 更新时间:2023-12-04 10:01:10 24 4
gpt4 key购买 nike

FCKEditor 不会出现在 IE10 中。当我打开 IE 开发工具并将浏览器模式切换到 IE9 时,FCKEditor 工作正常。但是当我为 IE9 设置元标记时:

<meta http-equiv="X-UA-Compatible" content="IE=9" >

进入我网页的标题,它对我没有帮助。如何让 FCKEditor 工作?或者有没有其他方法可以在 IE10 中模拟 IE9?

最佳答案

//IE10

fckeditor.js > 方法:FCKeditor_IsCompatibleBrowser

找到这个:

var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;

替换为:
var sBrowserVersion = navigator.appVersion.match(/MSIE ([\d.]+)/)[1] ;

fckeditorcode_ie.js

查找
e.scopeName!='HTML' 

将条件更改为:
if(FCKBrowserInfo.IsIE&& e.scopeName && e.scopeName!='HTML')

查找
D.parentElement().document!=B 

更改为:
if(D.parentElement().document && D.parentElement().document!=B)

查找
B.open("GET",A,false); 

添加这个:
B.open("GET",A,false);
try {
B.responseType = "msxml-document";
} catch(e) {};
B.send(null);

关于FCKEditor 在 IE10 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13639541/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com