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/