Let IE8 and IE9 support the Ewebeditor Online editor Method _ Web Editor

Source: Internet
Author: User
Tags eval

Recently in the Web site, found ewebeditor online text editor does not support IE9, click the button in the editor did not respond, before the site published a "solution IE8 does not support the Ewebeditor online text editor method", but seemingly in the IE9 method is ineffective, Found an end-level solution on the Internet, to share with you.

First find the directory where the Ewebeditor editor is located, then search the Editor.js file and open it with a text editor, and then locate the Btnmouseup () function, replacing the function code with the following code:

Copy Code code as follows:

function Btnmouseup () {
if (event.srcElement.tagName!= "IMG") {
Event.cancelbubble = true;
return false;
}

var image = Event.srcelement;
var element = Image.parentelement;

try{
if (element. Yuseronclick) eval (element. Yuseronclick + "anonymous ()");
}
catch (e) {
if (element. Yuseronclick) eval (element. Yuseronclick + "onclick (event)");
}

Element.classname = "Btnmouseoverup";
Image.classname = "Ico";

Event.cancelbubble = true;
return false;
}


Description: The blue part of the above code is a ewebeditor online text editor compatible with IE9IE8 core code, you can also replace the Btnmouseup () function in accordance with the actual code.

Tip: If your ewebeditor online text editor version is too old, under IE9 can not open the Ewebeditor interface, you could be set in the IE9 browser compatibility mode, the normal use of IE9 in the Ewebeditor.

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.