eWebEditor在IE8,IE7下所有按钮无效之解决办法
下面将错误的原因和方法总结道这里,备忘。
错误的原因是因为ie8屏蔽了anonymous方法 所以要改成onclick方法,打开include下面的editor.js文件,有这样的段代码(大概在166所在的函数中):
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”anonymous()”);
把那个anonymous方法改成onclick就可以了。
问题是解决了,结果发现把那个方法改成onclick之后在ie6下面就不管用了 ,解决方法:
if(navigator.appVersion.match(/MSIE (7|8)\./i)!=null){
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”onclick(event)”);
}else{
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”anonymous()”);
}

![[Themeforest] ColorFolio HTML Template [Themeforest] ColorFolio HTML Template](http://www.dayalive.com/wp-content/uploads/2009/12/8c1e_0_Preview.__large_preview.jpg)





![Themeforest Simplified [FULL] WordPress Themeforest Simplified [FULL] WordPress](http://www.dayalive.com/wp-content/uploads/2009/11/8909_20k6lfp.png)
最新关注