【JavaScript】eWebEditor 辑器按钮失效 IE8下完美解决
2012-06-12 15:04
459 查看
通过修改js文件解决:
在eWebEditor的目录里找到Editor.js文件,路径是webedit\Include\Editor.js(版本不同路径也不一定相同新版本中webedit/js/editor.js),在其中找到如下代码:
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的目录里找到Editor.js文件,路径是webedit\Include\Editor.js(版本不同路径也不一定相同新版本中webedit/js/editor.js),在其中找到如下代码:
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、9无法使用方法
- eWebEditor 辑器按钮失效 IE8下eWebEditor编辑器无法使用的解决方法
- IE8和IE9下ewebeditor上按钮无效的解决办法
- eWebEditor在ie9下按钮功能失效的解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor IE7 IE8 所有按钮无效 解决办法
- 解决eWebEditor老版本在IE新版本下按钮失效问题一劳永逸的办法
- 如何解决IE8中eWebEditor编辑器按钮不能正常使用
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- 彻底解决IE8和IE9下ewebeditor上按钮无效的方法
- eWebEditor在ie9下按钮功能失效的解决办法;
- 编辑器失效|IE8与ewebeditor不兼容的解决办法
- 解决ewebeditor 2.8免费版在IE8下按钮无效的问题
- 解决eWebEditor在ie8下上传失效的问题
- 解决EWEBEDITOR老版本在IE新版本下按钮失效问题一劳永逸的办法
- eWebEditor在IE8,IE7下所有按钮无效之解决办法
- eWebEditor IE7 IE8 所有按钮无效 解决办法