IE8 IE9 IE10 fckeditor 不能使用 BUG
IE8以上錯誤: 物件沒有支援這個屬性或方法 'selectSingleNode'
http://2.bp.blogspot.com/-9zXmZE2hT4o/UZ8fjW_clCI/AAAAAAAAEd4/GttY9_R4NnM/s640/Snap7.jpg
http://2.bp.blogspot.com/-aRH2G6wkBhQ/UZ8fjmpAldI/AAAAAAAAEd8/f_rlZJQUnxQ/s640/Snap6.jpg
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正常
{:5_4:}牛X海海!!! {:5_7:}我喜歡!感謝大大的分享 感謝分享,終於解決這個錯誤
很可能是煮的
頁:
[1]