在IE8上eWebEdit编辑器失效,这是什么问题引起的? 除了卸载掉IE8还有其他的好办法吗?答案是肯定的! - _1 m3 S( J1 ]* x
在eWebEditor的目录里找到Editor.js文件,路径是webedit\Include\Editor.js 用记事本打开,在其中找到如下代码: if (element.YUSERONCLICK) { eval(element.YUSERONCLICK + "anonymous()"); } / Z8 C) p7 r& L5 g# X+ ?
或 if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); / f# L% p0 U3 P* U( I
将上面的代码替换为 , ` [* o0 h/ C# K' D/ M
if(navigator.appVersion.match(/8./i)=='8.') { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); } else { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); } 1 u ^7 G) C1 u" v/ I8 M5 u
由于版本的不同造成这样的结果,通过上面的代码替换eWebEditor编辑器按钮可以正常使用了。
|