进入 ewebeditor 目录 ,找到 editor.js  ,不同版本的ewebeditor  ,这个 editor.js  可能会在不同的目录位置,只要你找到它就行了

 

然后,编辑 editor.js  ,打开后,找到

 

 

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

 

这句话,然扣,替换为如下代码 :

 

if (element.YUSERONCLICK) 

try 

eval(element.YUSERONCLICK + "onclick(event)"); 

catch (e){ 
eval(element.YUSERONCLICK + "anonymous()"); 

 

按以上方法,就可解决此问题。

 

错误的原因是因为ie8屏蔽了anonymous方法 所以要改成onclick方法

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-06-24
  • 2021-08-23
  • 2021-06-07
猜你喜欢
  • 2022-02-15
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案