From 21721cd729bbca04e392865de81ed4f1ad93b071 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Mon, 20 Jun 2016 21:07:46 +0200 Subject: [PATCH] [FEATURE] Make the dimensions of feedit popup configurable Use TsConfig to change the width & height of the popup used in the edit panel of EXT:feedit. Resolves: #18586 Releases: master Change-Id: Ifbc7ebae75a3454fbfe9a70f0a2b4b1d95a2c094 Reviewed-on: https://review.typo3.org/48617 Reviewed-by: Daniel Goerz Tested-by: Daniel Goerz Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- Classes/FrontendEditPanel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 7968218..aaa2024 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -304,7 +304,9 @@ class FrontendEditPanel */ protected function editPanelLinkWrap_doWrap($string, $url, $additionalClasses = '') { - $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . ExtensionManagementUtility::extRelPath('backend') . 'Resources/Private/Templates/Close.html') . ',\'FEquickEditWindow\',\'width=690,height=500,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; + $width = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupWidth'), 690, 5000, 690); + $height = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupHeight'), 500, 5000, 500); + $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . ExtensionManagementUtility::extRelPath('backend') . 'Resources/Private/Templates/Close.html') . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; return '' . $string . ''; }