[TASK] gitlab-ci: Run PHP 8.1 functional tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / Configuration / TCA / Overrides / tt_content.php
1 <?php
2
3 defined('TYPO3') or die();
4
5 // Activate t3editor for tt_content type HTML if this type exists
6 if (is_array($GLOBALS['TCA']['tt_content']['types']['html'])) {
7 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'])) {
8 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'] = [];
9 }
10 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'])) {
11 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'] = [];
12 }
13 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'])) {
14 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'] = [];
15 }
16 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['renderType'] = 't3editor';
17 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['wrap'] = 'off';
18 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['format'] = 'html';
19 }