Added patches to fix a bug in TinyMCE editor's JS.
authorsun
Sat, 7 Jun 2008 17:23:55 +0000 (17:23 +0000)
committersun
Sat, 7 Jun 2008 17:23:55 +0000 (17:23 +0000)
patches/tiny_mce_src.js.213.patch [new file with mode: 0644]

diff --git a/patches/tiny_mce_src.js.213.patch b/patches/tiny_mce_src.js.213.patch
new file mode 100644 (file)
index 0000000..fc92a64
--- /dev/null
@@ -0,0 +1,11 @@
+--- tiny_mce_src.js.orig       2008-05-31 16:32:58.311195600 +0200
++++ tiny_mce_src.js    2008-05-31 16:33:22.903214200 +0200
+@@ -1949,7 +1949,7 @@ TinyMCE_Engine.prototype = {
+                                       modal = "no";
+                               if (template.close_previous != "no")
+-                                      try {tinyMCE.lastWindow.close();} catch (ex) {}
++                                      try {if (typeof tinyMCE.lastWindow == 'object') tinyMCE.lastWindow.close();} catch (ex) {};
+                               win = window.open(url, "mcePopup" + new Date().getTime(), "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=" + modal + ",minimizable=" + resizable + ",modal=" + modal + ",width=" + width + ",height=" + height + ",resizable=" + resizable);
+                               if (win == null) {