您的位置:首页 > 其它

ewebeditor ie8兼容问题

2009-04-01 11:24 375 查看
最近IE8出来了,ewebeditor也出现了不兼容问题.下面是解决办法:

if(navigator.appVersion.match(/8./i)=='8.' || navigator.appVersion.match(/7./i)=='7.'){

if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); //IE8 or IE7

} else {

if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); //IE6

}

不过ewebeditor对其他浏览器也存在不兼容情况,建议还是用fckeditor.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: