Keyword: The ewebeditor button is invalid. IE7 IE8
Today, I helped my friend build a small website and used ewebeditor to download a free version from the official website as follows:
"Ewebeditor version 2.8.0 final version [309 K]"
In the test result, clicking all the buttons is invalid and there is no response, so you can find the answer online,
Wow, too many friends have encountered such a problem. Thanks to the methods provided by the Friends above (BS is a bit uncomfortable with the incorrect method written by some people ).
The following describes the cause and method of the error.
The cause of the error is that IE8 shields the anonymous method, so we need to change it to The onclick method to open the editor. js file under include.Code(Probably in the function where 166 is located ):
JS Code
- If(Element. yuseronclick) eval (element. yuseronclick +"Anonymous ()");
If (element. yuseronclick) eval (element. yuseronclick + "anonymous ()");
Change the anonymous method to onclick.
The problem is solved, and it turns out that the method is replaced with onclick, and then it will not work in IE6. solution:
JS Code
- 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 ()" );
- }
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 ()");}
OK.
Thank you for your support!