woff 發表於 2013-11-16 13:30:59

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正常

呵呵 發表於 2013-11-16 22:29:01

{:5_4:}牛X海海!!!

smj16888 發表於 2013-11-17 03:54:23

{:5_7:}我喜歡!感謝大大的分享

my64064339 發表於 2013-12-26 14:43:33

感謝分享,終於解決這個錯誤

地方家常菜 發表於 2014-6-27 17:13:26


很可能是煮的
頁: [1]
查看完整版本: IE8 IE9 IE10 fckeditor 不能使用 BUG