eWebEditorはIE 8/IE 7の解決方法をサポートしていません


      :  editor.js    
// Toolbar button onmouseup handler
function BtnMouseUp() {
if (event.srcElement.tagName != "IMG") {
event.cancelBubble = true;
return false;
}

var image = event.srcElement;
var element = image.parentElement;

//if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
     if(navigator.appVersion.match(/8./i)=='8.') 
      { 
        if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); 
       } 
     else 
     
       { 
      if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); 
     } 
element.className = "BtnMouseOverUp";
image.className = "Ico";

event.cancelBubble = true;
return false;
}
 
  ASP.NET      HTML   Name        
 
<form enctype="multipart/form-data" action="#" method="post" id="adminform" name="form1" runat="server">
<p>    </p>
<span>  :</span><input type="text" name="title" id="admintitle"  runat="server"/><br />
<span>  :</span><asp:FileUpload id="file" runat="server"/><br />
<span>  :</span><select name="type" id="adminselect" runat="server">
<option value="  ">  </option>
<option value="  ">  </option>
</select><br />
<span>  :</span><br />
<textarea id="admintext" name="text" cols="70" rows="21"  runat="server"></textarea><br />
<input type="button" value="    " class="button" style="width:100px;" onclick="eWebEditorPopUp('adminform', 'admintext', 700, 500);"/>
<input type="reset" value="  " class="button"/>
<asp:Button ID="button1" CssClass="button" runat="server" Text="  " onclick="button1_Click"/>
<span id="fileex" runat="server"><a></a></span>
<span id="result" runat="server"><a></a></span>
</form>
 
<form name="adminform" method="post" action="admin_admin.aspx" id="adminform" enctype="multipart/form-data">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE0MDM0NzkyMTgPZBYCAgMPFgIeCWlubmVyaHRtbAUHemFpdGlhbmRkskyzG8f4ESObK9M+JsGrnfiYCY8=" />
</div>
 
<p>    </p>
<span>  :</span><input name="admintitle" type="text" id="admintitle" /><br />
<span>  :</span><input type="file" name="file" id="file" /><br />
<span>  :</span><select name="adminselect" id="adminselect">
 <option value="  ">  </option>
 <option value="  ">  </option>
</select><br />
<span>  :</span><br />
<textarea name="admintext" id="admintext" cols="70" rows="21"></textarea><br />
<input type="button" value="    " class="button" style="width:100px;" onclick="eWebEditorPopUp('adminform', 'admintext', 700, 500);"/>
<input type="reset" value="  " class="button"/>
<input type="submit" name="button1" value="  " id="button1" class="button" />
<span id="fileex"><a></a></span>
<span id="result"><a></a></span>
 
<div>
 
 <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQL/wejzAwKgz8D1BwL4jJyHDAKE9LONCQKs34rGBiVbt02kJursZrIBBXPl/aUiozt2" />
</div></form>

IE8 eWebEditor :

    1、 eWebEditor , editor.js , eWebEditor , editor.js , Include , js 。

    2、 editor.js , :

if (element.YUSERONCLICK) {

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

}

 

    eWebEditor , , , , :

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

   

    3、 :

if(navigator.appVersion.match(/8./i)=='8.')

    {

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

   }

else

   {

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

}

 

 

 

 

 

168

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

anonymous onclick 。  

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()"); }

IE8 ,ewebeditor . :

<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> if (navigator.appVersion.match( / 8. / i) == ' 8. '   ||  navigator.appVersion.match( / 7. / i) == ' 7. ' ){    if  (element.YUSERONCLICK) eval(element.YUSERONCLICK  +   " onclick(event) " );  // IE8 or IE7 else  {    if  (element.YUSERONCLICK) eval(element.YUSERONCLICK  +   " anonymous() " );  // IE6 }

ewebeditor , fckeditor.

, eWebEditor , “IE 8.0でeWebEditorが に できない ” Edit.js 。 IE7 , 。 。 ,IE7 IE8 。 IE 。 : if(navigator.appVersion.match(/8./i)=='8.'){     if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); }else{     if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); } IE8 IE7 eWebEditor 。 IE8 , , IE , 。 alert(navigator.appVersion) , IE7? :

IE8 :

! ? IE8 ? ? ? : if(navigator.appVersion.match(/8./i)=='8.' || navigator.appVersion.match(/MAXTHON/i)=='MAXTHON'){     if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); }else{     if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); } , , 、