[BUGFIX] RTE TYPO3Link PopupWindow size fallback 73/49873/2
authorPierrick Caillon <pierrick.caillon@plan-net.fr>
Tue, 6 Sep 2016 14:06:04 +0000 (16:06 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 1 Dec 2016 15:29:13 +0000 (16:29 +0100)
The RTE TYPO3Link.js link chooser popup uses the
'''top.TYPO3.configuration.RTEPopupWindow''' sizes.
When using Frontend Editing, this object is not available.
As fallback, '''top.TYPO3.configuration.PopupWindow''' is used.

Resolves: #75980
Releases: 7.6
Change-Id: Iaf4389abce3e7a49ddfa42165a7322923e520fde
Reviewed-on: https://review.typo3.org/49873
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Manuel Glauser <mail@manuelglauser.ch>
Tested-by: Manuel Glauser <mail@manuelglauser.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/TYPO3Link.js

index 54a9690..f3bc06e 100644 (file)
@@ -162,8 +162,8 @@ define(['TYPO3/CMS/Rtehtmlarea/HTMLArea/Plugin/Plugin',
                                        this.getButton(buttonId).tooltip,
                                        this.getWindowDimensions(
                                                {
-                                                       width:  top.TYPO3.configuration.RTEPopupWindow.width,
-                                                       height: top.TYPO3.configuration.RTEPopupWindow.height
+                                                       width:  (top.TYPO3.configuration.RTEPopupWindow || top.TYPO3.configuration.PopupWindow).width,
+                                                       height: (top.TYPO3.configuration.RTEPopupWindow || top.TYPO3.configuration.PopupWindow).height
                                                },
                                                buttonId
                                        ),