|
IE8以上
錯誤: 物件沒有支援這個屬性或方法 'selectSingleNode'


IE8 以上修改
修改檔案:fckeditor/editor/js/fckeditorcode_ie.js ,
第 38行:FCKTools.RegisterDollarFunction
原:
FCKTools.RegisterDollarFunction=function(A){A.$=A.document.getElementById;};
修改為:
FCKTools.RegisterDollarFunction=function(A){A.$=function(v){return A.document.getElementById(v);}};
修改檔案:fckeditor/editor/js/fckeditorcode_ie.js
第 68行:B.open("GET",A,false);及B.send(null);
在兩著中間插入:
try { B.responseType = 'msxml-document'; } catch (e) { };
IE10會又多個問題
修改檔案:fckeditor/editor/js/fckeditor.js
第120行:var sAgent = navigator.userAgent.toLowerCase();
後方加入内容如下:
if(sAgent.indexOf("msie 1") != -1) return true;
WORK正常
|
|