From 8693864fd89d3e0d28dbf863818514dc982d38f3 Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Mon, 4 Nov 2024 06:40:01 +0100 Subject: [PATCH] [TASK] Drop v12 fallback for codeEditor --- .../400_bootstrappackage_carousel_item.php | 32 +++++-------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/Configuration/TCA/Overrides/400_bootstrappackage_carousel_item.php b/Configuration/TCA/Overrides/400_bootstrappackage_carousel_item.php index e02331b12..ac79c4694 100644 --- a/Configuration/TCA/Overrides/400_bootstrappackage_carousel_item.php +++ b/Configuration/TCA/Overrides/400_bootstrappackage_carousel_item.php @@ -12,28 +12,12 @@ defined('TYPO3') or die('Access denied.'); -// v12 -if (ExtensionManagementUtility::isLoaded('t3editor')) { - $GLOBALS['TCA']['tx_bootstrappackage_carousel_item']['types']['html']['columnsOverrides'] = [ - 'bodytext' => [ - 'config' => [ - 'renderType' => 't3editor', - 'wrap' => 'off', - 'format' => 'html', - ], +$GLOBALS['TCA']['tx_bootstrappackage_carousel_item']['types']['html']['columnsOverrides'] = [ + 'bodytext' => [ + 'config' => [ + 'renderType' => 'codeEditor', + 'wrap' => 'off', + 'format' => 'html', ], - ]; -} - -// v13 onwards -if ((new Typo3Version)->getMajorVersion() >= 13) { - $GLOBALS['TCA']['tx_bootstrappackage_carousel_item']['types']['html']['columnsOverrides'] = [ - 'bodytext' => [ - 'config' => [ - 'renderType' => 'codeEditor', - 'wrap' => 'off', - 'format' => 'html', - ], - ], - ]; -} + ], +];