{"id":65,"date":"2008-09-11T16:19:32","date_gmt":"2008-09-11T21:19:32","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=65"},"modified":"2008-09-14T15:16:29","modified_gmt":"2008-09-14T20:16:29","slug":"why-doesnt-tinymce-load-in-ie","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2008\/09\/why-doesnt-tinymce-load-in-ie\/","title":{"rendered":"Why Doesn&#8217;t TinyMCE load in IE?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 800px;\" src=\"https:\/\/osric.com\/chris\/accidental-developer\/wp-content\/uploads\/2008\/09\/ie7.jpg\" align=\"right\" height=\"200\" width=\"200\" \/>looks like it is all due to the insertAdjacentHTML call being used in another library. In my case, wz_tooltip. Oh wow did this hurt me. So that horror of a project that keeps on poking its head up sent in another small request&#8230; put <a href=\"http:\/\/tinymce.moxiecode.com\/\">tinyMCE<\/a> or <a href=\"http:\/\/www.fckeditor.net\/\">FCKeditor<\/a> into one page on the website. Offered 5 hours. Well TinyMCE is already installed, so I figured this was a chance to recoup a <i>little<\/i> of my loss on this project. Sure enough, I activated TinyMCE with about 5 lines of code, checked that it worked in Firefox, and billed my money. <\/p>\n<p>Next morning I get a call. The thing doesn&#8217;t work in IE. So I try a few quick and obvious things, move around where it gets loaded, try a few different load orders. No luck. Grr. I was going to type out my whole damn process, but I realized that&#8217;s not what people want to read&#8230;<\/p>\n<p>Short version is: the <a href=\"http:\/\/www.walterzorn.com\/tooltip\/tooltip_e.htm\">wz_tooltip.js<\/a> library conflicts with the <a href=\"http:\/\/tinymce.moxiecode.com\/\">TinyMCE<\/a> library ONLY in Internet Explorer. This is because of a call to <a href=\"http:\/\/www.faqts.com\/knowledge_base\/view.phtml\/aid\/7184\/fid\/53\">insertAdjacentHTML<\/a> which is an IE-only javascript call (thanks again for embrace and extend M$). As a workaround, you can modify the wz_tooltip file by commenting out from line 397 (inclusive) (thats: <font face=\"Courier New\">   if(wztt_body.insertAdjacentHTML)<\/font> ) down to line 400 inclusive (thats : <font face=\"Courier New\">else if(typeof wztt_body.innerHTML != wztt_u &#038;&amp; document.createElement &#038;&amp; wztt_body.appendChild)<\/font> ) And now I&#8217;m off to submit bug reports.<\/p>\n<p>What a waste of a morning. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>looks like it is all due to the insertAdjacentHTML call being used in another library. In my case, wz_tooltip. Oh wow did this hurt me. So that horror of a project that keeps on poking its head up sent in another small request&#8230; put tinyMCE or FCKeditor into one page on the website. Offered 5 &hellip; <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2008\/09\/why-doesnt-tinymce-load-in-ie\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Why Doesn&#8217;t TinyMCE load in IE?<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[34,350,35],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-internet-explorer","tag-javascript","tag-tinymce"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}