FCKEditor 在 IE10 中不起作用

标签 fckeditor internet-explorer-10

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/

相关文章:

Internet Explorer 中的 CSS "unset"/"initial"

asp.net - FCK编辑器。处理图像

jquery - CKEditor 在 jQuery UI 重新排序上卡住

html - IE 10 打印似乎缩小了

javascript - window.__proto__ 相当于 IE10

javascript - IE10 的 readAsBinaryString 替代方案

asp.net - 基于网络的实时富文本编辑器

asp.net-mvc - asp.net-mvc 中的 FCKEditor

javascript - FCKeditor 或 TinyMCE 如何捕获粘贴的图像?

internet-explorer-10 - JS 功能检测对嵌套元素的 keep-3d 属性支持