使用的是phpcms2008,自带的fck2.6.3经过多次改版暂时不考虑更换编辑器,涉及到内容比较多的关系!
今天终于要解决下fck在ie10下的兼容问题了,百度搜索了半天,国内那些复制抄袭的都是不能完全解决问题的答案。最后还是要靠谷歌,搜索到老外给的答案。
//IE10
in fckeditor.js > method : FCKeditor_IsCompatibleBrowser
find this:
var sBrowserVersion = navigator.appVersion.match(/MSIE (...)/)[1] ;
and replace with:
var sBrowserVersion = navigator.appVersion.match(/MSIE ([d.]+)/)[1] ;
in fckeditorcode_ie.js
find
e.scopeName!='HTML'
and change if condition to:
if(FCKBrowserInfo.IsIE&& e.scopeName && e.scopeName!='HTML')
find
D.parentElement().document!=B
and change if to:
if(D.parentElement().document && D.parentElement().document!=B)
find
B.open("GET",A,false);
and add this:
B.open("GET",A,false);
try {
B.responseType = "msxml-document";
} catch(e) {};
B.send(null);