After our technicians checked the results, it turned out to be a script error caused by the compatibility of the eWebEditor text editor with the IE 8 browser. It was not a "website space, server poisoning, and problems! Now we will announce the solution to help you revise your website code so that the text editor can be compatible and used properly in various browsers!
To solve the problem that IE8 does not support the eWebEditor online text editor, follow these steps:
[1] First, find the editor under the Include directory under the root directory of the eWebEditor text editor. js files (Note: Different eWebEditor versions of the editor. the Directory of the js file may be different, and some may be under the js directory)
[2] Open the editor. js file in notepad and find the following code:
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + 'anonus us ()');
Note: The Code in different versions of eWebEditor may be different or the following code:Copy codeThe Code is as follows: if (element. YUSERONCLICK ){
Eval_r (element. YUSERONCLICK + 'Anonymous ()');
}
The above two sections of code only have different writing formats. The code and meaning are the same!
[3] Replace the above Code with the following code:Copy codeThe Code is as follows: if (navigator. appVersion. match (/8./I) = '8 .')
{
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + 'onclick (event )');
}
Else
{
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + 'anonus us ()');
}
[4] It is tested that IE6, IE7, and IE8 can be used normally, but it still cannot be used normally when you use the aoyou browser on a machine with IE8. Khan! Let's add a code to judge the Ao you Browser:Copy codeThe Code is as follows: if (navigator. appVersion. match (/8. /I) = '8. '| navigator. appVersion. match (/MAXTHON/I) = 'maxthon ')
{
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + "onclick (event )");
}
Else
{
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + "anonymous ()");
}
Internet Explorer 6, Internet Explorer 7, Internet Explorer 8, Internet Explorer 360, and Internet Explorer have been tested! If none of the above methods works, try the following constructor:Copy codeThe Code is as follows: try {
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + "anonymous ()");
}
Catch (e ){
If (element. YUSERONCLICK) eval_r (element. YUSERONCLICK + "onclick (event )");
}
IE8 does not support the final solution of the eWebEditor online Text Editor:
If you find that none of the above Code works! What's going on? That's because you are using an upgraded version of ie8, so the IE version read from the code is actually the version before the upgrade. if the version is good, it is wrong to read it, of course, you can't use the above Code. At this time, you 'd better re-download and install IE8, the final release version, or you have to use the code to change it:Copy codeThe Code is as follows: 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 ()");
}
OrCopy codeThe Code is as follows: try {
If (element. YUSERONCLICK) eval (element. YUSERONCLICK + "anonymous ()");
}
Catch (e ){
If (element. YUSERONCLICK) eval (element. YUSERONCLICK + "onclick (event )");
}
However, the above modification method will invalidate the text editor in the normal IE 7 browser !!! So it is best to (persuade the customer) install a final version of IE8!