eWebEditor在IE8中使用时候总是报错“没有对象”。解决办法如下:
在eWebEditor的目录里找到Editor.js文件,路径是webedit/Include/Editor.js 用记事本打开,在其中找到如下代码:
if (element.YUSERONCLICK) {
eval(element.YUSERONCLICK + "anonymous()");
}
或
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
版本不同可能写法有点区别
将上面的代码替换为
if(navigator.appVersion.match(/8./i)=='8.')
{
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)");
}
else
{
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
}
eWebEditor在IE8中使用时候总是报错“没有对象”。解决办法如下:
最新推荐文章于 2021-12-02 17:32:15 发布