{"id":39,"date":"2010-09-27T10:54:21","date_gmt":"2010-09-27T08:54:21","guid":{"rendered":"http:\/\/luca.lovalvo.net\/1_luca_lo_valvo\/archive\/8521_lifetype-tinymce_bug_insertion_dimage.html"},"modified":"2022-11-04T15:57:21","modified_gmt":"2022-11-04T14:57:21","slug":"lifetype-tinymce-bug-insertion-dimage","status":"publish","type":"post","link":"https:\/\/luca.lovalvo.ch\/blog\/lifetype-tinymce-bug-insertion-dimage\/","title":{"rendered":"Lifetype &#8211; TinyMCE bug insertion d&#039;image"},"content":{"rendered":"<p>Depuis quelques semaines, suite &agrave; une mise &agrave; jours des interpr&eacute;teurs JS dans les navigateur (en particulier sous Firefox), l&#39;insertion d&#39;image dans TinyMCE (l&#39;&eacute;diteur WYSIWYG) ne fonctionnait plus.<\/p>\n<p>Deux solutions s&#39;offrent &agrave; vous :<\/p>\n<p>1) Mettre &agrave; jour votre version de tinyMCE&#8230; ou<\/p>\n<p>2) Modifier le fichier &quot;<font color=\"#008000\">tiny_mce.js<\/font>&quot;.<br \/>(dans lifetype, il se trouve dans : <font color=\"#008000\">\/js\/tinymce<\/font>)<\/p>\n<p>2.1) Chercher la fonction : <font color=\"#008000\">fixGeckoBaseHREFBug<\/font>()<br \/>Puis commenter :<\/p>\n<p> <font color=\"#0000ff\">h = h.replace(\/ssrc=\/gi, &quot; src=&quot;);<br \/>h = h.replace(\/shref=\/gi, &quot; href=&quot;);<\/font><\/p>\n<p>Ce qui donnera : <\/p>\n<p><font color=\"#0000ff\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (m == 1) {<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/&nbsp; &nbsp; &nbsp; h = h.replace(\/ssrc=\/gi, &quot; src=&quot;);<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/&nbsp; &nbsp; &nbsp; h = h.replace(\/shref=\/gi, &quot; href=&quot;);<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return h;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Depuis quelques semaines, suite &agrave; une mise &agrave; jours des interpr&eacute;teurs JS dans les navigateur (en particulier sous Firefox), l&#39;insertion d&#39;image dans TinyMCE (l&#39;&eacute;diteur WYSIWYG) ne fonctionnait plus. Deux solutions s&#39;offrent &agrave; vous : 1) Mettre &agrave; jour votre version de tinyMCE&#8230; ou 2) Modifier le fichier &quot;tiny_mce.js&quot;.(dans lifetype, il se trouve dans : \/js\/tinymce) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-programmation"],"_links":{"self":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions\/247"}],"wp:attachment":[{"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luca.lovalvo.ch\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}