{"id":556,"date":"2009-07-31T20:55:00","date_gmt":"2009-07-31T12:55:00","guid":{"rendered":""},"modified":"2013-11-27T20:28:20","modified_gmt":"2013-11-27T12:28:20","slug":"ewebeditor%e4%b8%8d%e6%94%af%e6%8c%81ie8%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/556.html","title":{"rendered":"eWebEditor\u4e0d\u652f\u6301IE8\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u73b0\u5728\u516c\u5e03\u65b9\u6cd5\uff1a\u66ff\u6362editor.js \u51fd\u6570<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\/\/ Toolbar button onmouseup handler\r\nfunction BtnMouseUp() {\r\nif (event.srcElement.tagName != &quot;IMG&quot;) {\r\nevent.cancelBubble = true;\r\nreturn false;\r\n}\r\n\r\nvar image = event.srcElement;\r\nvar element = image.parentElement;\r\n\r\n\/\/if (element.YUSERONCLICK) eval(element.YUSERONCLICK + &quot;anonymous()&quot;);\r\n     if(navigator.appVersion.match(\/8.\/i)=='8.')\r\n      {\r\n        if (element.YUSERONCLICK) eval(element.YUSERONCLICK + &quot;onclick(event)&quot;);\r\n       }\r\n     else\r\n\r\n       {\r\n      if (element.YUSERONCLICK) eval(element.YUSERONCLICK + &quot;anonymous()&quot;);\r\n     }\r\nelement.className = &quot;BtnMouseOverUp&quot;;\r\nimage.className = &quot;Ico&quot;;\r\n\r\nevent.cancelBubble = true;\r\nreturn false;\r\n}\r\n<\/pre>\n<p>\u6ce8\u610fASP.NET\u9875\u9762\u8fd0\u884c\u540e\u7684HTML\u6807\u7b7e\u7684Name\u5c5e\u6027\u503c\u53ef\u80fd\u8981\u6539\u53d8<\/p>\n<p>\u8fd0\u884c\u524d\uff1a<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form enctype=&quot;multipart\/form-data&quot; action=&quot;#&quot; method=&quot;post&quot; id=&quot;adminform&quot; name=&quot;form1&quot; runat=&quot;server&quot;&gt;\r\n&lt;p&gt;\u53d1\u8868\u6587\u7ae0&lt;\/p&gt;\r\n&lt;span&gt;\u6807\u9898\uff1a&lt;\/span&gt;&lt;input type=&quot;text&quot; name=&quot;title&quot; id=&quot;admintitle&quot;  runat=&quot;server&quot;\/&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u9644\u4ef6\uff1a&lt;\/span&gt;&lt;asp:FileUpload id=&quot;file&quot; runat=&quot;server&quot;\/&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u7c7b\u578b\uff1a&lt;\/span&gt;&lt;select name=&quot;type&quot; id=&quot;adminselect&quot; runat=&quot;server&quot;&gt;\r\n&lt;option value=&quot;\u8bfe\u4ef6&quot;&gt;\u8bfe\u4ef6&lt;\/option&gt;\r\n&lt;option value=&quot;\u4ee3\u7801&quot;&gt;\u4ee3\u7801&lt;\/option&gt;\r\n&lt;\/select&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u5185\u5bb9\uff1a&lt;\/span&gt;&lt;br \/&gt;\r\n&lt;textarea id=&quot;admintext&quot; name=&quot;text&quot; cols=&quot;70&quot; rows=&quot;21&quot;  runat=&quot;server&quot;&gt;&lt;\/textarea&gt;&lt;br \/&gt;\r\n&lt;input type=&quot;button&quot; value=&quot;\u9ad8\u7ea7\u7f16\u8f91&quot; class=&quot;button&quot; style=&quot;width:100px;&quot; onclick=&quot;eWebEditorPopUp('adminform', 'admintext', 700, 500);&quot;\/&gt;\r\n&lt;input type=&quot;reset&quot; value=&quot;\u91cd\u7f6e&quot; class=&quot;button&quot;\/&gt;\r\n&lt;asp:Button ID=&quot;button1&quot; CssClass=&quot;button&quot; runat=&quot;server&quot; Text=&quot;\u63d0\u4ea4&quot; onclick=&quot;button1_Click&quot;\/&gt;\r\n&lt;span id=&quot;fileex&quot; runat=&quot;server&quot;&gt;&lt;a&gt;&lt;\/a&gt;&lt;\/span&gt;\r\n&lt;span id=&quot;result&quot; runat=&quot;server&quot;&gt;&lt;a&gt;&lt;\/a&gt;&lt;\/span&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>\u8fd0\u884c\u540e\uff1a<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;form name=&quot;adminform&quot; method=&quot;post&quot; action=&quot;admin_admin.aspx&quot; id=&quot;adminform&quot; enctype=&quot;multipart\/form-data&quot;&gt;\r\n&lt;div&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; id=&quot;__VIEWSTATE&quot; value=&quot;\/wEPDwULLTE0MDM0NzkyMTgPZBYCAgMPFgIeCWlubmVyaHRtbAUHemFpdGlhbmRkskyzG8f4ESObK9M+JsGrnfiYCY8=&quot; \/&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;p&gt;\u53d1\u8868\u6587\u7ae0&lt;\/p&gt;\r\n&lt;span&gt;\u6807\u9898\uff1a&lt;\/span&gt;&lt;input name=&quot;admintitle&quot; type=&quot;text&quot; id=&quot;admintitle&quot; \/&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u9644\u4ef6\uff1a&lt;\/span&gt;&lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot; \/&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u7c7b\u578b\uff1a&lt;\/span&gt;&lt;select name=&quot;adminselect&quot; id=&quot;adminselect&quot;&gt;\r\n &lt;option value=&quot;\u8bfe\u4ef6&quot;&gt;\u8bfe\u4ef6&lt;\/option&gt;\r\n &lt;option value=&quot;\u4ee3\u7801&quot;&gt;\u4ee3\u7801&lt;\/option&gt;\r\n&lt;\/select&gt;&lt;br \/&gt;\r\n&lt;span&gt;\u5185\u5bb9\uff1a&lt;\/span&gt;&lt;br \/&gt;\r\n&lt;textarea name=&quot;admintext&quot; id=&quot;admintext&quot; cols=&quot;70&quot; rows=&quot;21&quot;&gt;&lt;\/textarea&gt;&lt;br \/&gt;\r\n&lt;input type=&quot;button&quot; value=&quot;\u9ad8\u7ea7\u7f16\u8f91&quot; class=&quot;button&quot; style=&quot;width:100px;&quot; onclick=&quot;eWebEditorPopUp('adminform', 'admintext', 700, 500);&quot;\/&gt;\r\n&lt;input type=&quot;reset&quot; value=&quot;\u91cd\u7f6e&quot; class=&quot;button&quot;\/&gt;\r\n&lt;input type=&quot;submit&quot; name=&quot;button1&quot; value=&quot;\u63d0\u4ea4&quot; id=&quot;button1&quot; class=&quot;button&quot; \/&gt;\r\n&lt;span id=&quot;fileex&quot;&gt;&lt;a&gt;&lt;\/a&gt;&lt;\/span&gt;\r\n&lt;span id=&quot;result&quot;&gt;&lt;a&gt;&lt;\/a&gt;&lt;\/span&gt;\r\n\r\n&lt;div&gt;\r\n\r\n &lt;input type=&quot;hidden&quot; name=&quot;__EVENTVALIDATION&quot; id=&quot;__EVENTVALIDATION&quot; value=&quot;\/wEWBQL\/wejzAwKgz8D1BwL4jJyHDAKE9LONCQKs34rGBiVbt02kJursZrIBBXPl\/aUiozt2&quot; \/&gt;\r\n&lt;\/div&gt;&lt;\/form&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\u516c\u5e03\u65b9\u6cd5\uff1a\u66ff\u6362editor.js \u51fd\u6570 \/\/ Toolbar button onmouseup handl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":5272,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions\/5272"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}