Skip to content

Commit

Permalink
[TASK] Drop v12 fallback for codeEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Nov 11, 2024
1 parent 02c1cb6 commit 8693864
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions Configuration/TCA/Overrides/400_bootstrappackage_carousel_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
],
];
}
],
];

0 comments on commit 8693864

Please sign in to comment.