日期:2012-10-09 分类:网络技术 浏览:11777 来源:邦明科技
在做网站开发过程中,经常使用的eWebeidtor和fckeditor编辑器会由于浏览器的升级而出现不兼容的情况,特别是不兼容IE6以上的版本
IE8以后fckeditor无法上传图片、弹出浮层内容不显示的原因:
IE8,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);}};