diff -r c433348f3628 -r 31c23016ab62 includes/clientside/tinymce/tiny_mce_popup.js --- a/includes/clientside/tinymce/tiny_mce_popup.js Fri Feb 22 12:51:53 2008 -0500 +++ b/includes/clientside/tinymce/tiny_mce_popup.js Sun Feb 24 12:50:52 2008 -0500 @@ -3,9 +3,20 @@ tinyMCEPopup = { init : function() { - var t = this, w = t.getWin(), ti; + var t = this, w, ti, li, q, i, it; - // Find API + li = ('' + document.location.search).replace(/^\?/, '').split('&'); + q = {}; + for (i=0; i'); }, @@ -110,8 +124,16 @@ close : function() { var t = this; - t.dom = t.dom.doc = null; // Cleanup - t.editor.windowManager.close(window, t.id); + // To avoid domain relaxing issue in Opera + function close() { + t.editor.windowManager.close(window, t.id); + tinymce = tinyMCE = t.editor = t.params = t.dom = t.dom.doc = null; // Cleanup + }; + + if (tinymce.isOpera) + t.getWin().setTimeout(close, 0); + else + close(); }, // Internal functions @@ -139,7 +161,7 @@ // Replace a=x with a="x" in IE if (tinymce.isIE) - h = h.replace(/ (value|title|alt)=([^\s>]+)/gi, ' $1="$2"'); + h = h.replace(/ (value|title|alt)=([^"][^\s>]+)/gi, ' $1="$2"') document.body.innerHTML = t.editor.translate(h); document.title = ti = t.editor.translate(ti);