Solution to ineffective buttons of ewebeditor in IE8 and IE7

Source: Internet
Author: User
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
    1. 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
    1. If (navigator. appversion. Match (/MSIE (7 | 8) \./I )! = null ) {
    2. If (element. yuseronclick) eval (element. yuseronclick + "onclick (event)" );
    3. } else {
    4. If (element. yuseronclick) eval (element. yuseronclick + "anonymous ()" );
    5. }
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.