SCRIPT65535: 調用的對象無效
更新到IE9後,fckeditor在IE9裡的彈出浮動層會出現bug,裡面的内容不會出現。是以無論是想在頁面編輯器裡粘貼内容,還是上傳圖檔等凡是需要彈出視窗操作的東西都會有問題,想要進行其它的操作也隻能重新重新整理頁面。原因是IE9不支援var $=document.getElementById;這樣的寫法了。
打開下面這個檔案 fckeditor/editor/js/fckeditorcode_ie.js
找到第38行的這個方法:FCKTools.RegisterDollarFunction
将原來的 FCKTools.RegisterDollarFunction=function(A){A.$=A.document.getElementById;};
修改方法為: FCKTools.RegisterDollarFunction=function(A){A.$=function(v)FCKTools.RegisterDollarFunction=function(A){A.$=function(v){return A.document.getElementById(v);}};
經驗證方法可行