fckeditor在ie9中不支持$=document.getElementById解决办法

发布日期:2013-07-09 作者:mi52.com 人气:

关于fckeditor在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){return A.document.getElementById(v);}};

返回顶部

拨打电话
首页