TShopping

 找回密碼
 註冊
搜索
查看: 2752|回復: 4
打印 上一主題 下一主題

[教學] IE8 IE9 IE10 fckeditor 不能使用 BUG

[複製鏈接]
跳轉到指定樓層
1#
發表於 2013-11-16 13:30:59 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
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正常


 

臉書網友討論
2#
發表於 2013-11-16 22:29:01 | 只看該作者
牛X海海!!!

版主招募中

3#
發表於 2013-11-17 03:54:23 | 只看該作者
我喜歡!感謝大大的分享


4#
發表於 2013-12-26 14:43:33 | 只看該作者
感謝分享,終於解決這個錯誤


5#
發表於 2014-6-27 17:13:26 | 只看該作者

  很可能是煮的


*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-4-19 10:42 , Processed in 0.067805 second(s), 22 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表