[BUGFIX] IE9 crashes after saving with RTE 34/17034/2
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 8 Dec 2012 15:49:42 +0000 (10:49 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 8 Dec 2012 16:26:25 +0000 (17:26 +0100)
Problem: A cleaning operation is performed too early for IE9.

Change-Id: I888c5b8c29ef3d1bf2787fc598aafeef92c7d5f4
Resolves: #43766
Releases: 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/17033
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
Reviewed-on: https://review.typo3.org/17034

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 7ace023..4c1c799 100644 (file)
@@ -2540,8 +2540,6 @@ HTMLArea.Editor = Ext.extend(Ext.util.Observable, {
                }
                        // Cleanup
                Ext.TaskMgr.stopAll();
-                       // ExtJS is not releasing any resources when the iframe is unloaded
-               this.htmlArea.destroy();
                Ext.iterate(this.plugins, function (pluginId) {
                        this.unRegisterPlugin(pluginId);
                }, this);
@@ -2554,6 +2552,8 @@ HTMLArea.Editor = Ext.extend(Ext.util.Observable, {
                }
                this.textArea.dom = null;
                RTEarea[this.editorId].editor = null;
+               // ExtJS is not releasing any resources when the iframe is unloaded
+               this.htmlArea.destroy();
        }
 });
 HTMLArea.Ajax = function (config) {