[BUGFIX] RTE: In IE, the pasting pad sometimes shows an error page 59/33759/2
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 3 Nov 2014 18:01:48 +0000 (13:01 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 3 Nov 2014 18:03:21 +0000 (19:03 +0100)
In IE, the pasting pad for plain text pasting sometimes shows an
error page.
Apparently, a timing issue.

Releases: master, 6.2
Resolves: #62658
Change-Id: Idb34ea6bc00d6020da637addee42cfd2db2d87f3
Reviewed-on: http://review.typo3.org/33758
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
(cherry picked from commit c51733a67caacc25ac569035aadc93a3ceebb737)
Reviewed-on: http://review.typo3.org/33759

typo3/sysext/rtehtmlarea/htmlarea/plugins/PlainText/plain-text.js

index 9352866..656bb3e 100644 (file)
@@ -411,7 +411,8 @@ HTMLArea.PlainText = Ext.extend(HTMLArea.Plugin, {
                                this.buildButtonConfig('Cancel', this.onCancel)
                        ]
                });
-               this.show();
+               // Apparently, IE needs sometime before being able to show the iframe
+               this.show.defer(100, this);
        },
        /*
         * Handler invoked after the pasting pad iframe has been rendered