[BUGFIX] Fix some PHP Notices thrown when rendering page module
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / Configuration / TCA / Overrides / tt_content.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Activate t3editor for tt_content type HTML if this type exists
5 if (is_array($GLOBALS['TCA']['tt_content']['types']['html'])) {
6 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'])) {
7 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'] = [];
8 }
9 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'])) {
10 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'] = [];
11 }
12 if (!isset($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'])) {
13 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'] = [];
14 }
15 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['renderType'] = 't3editor';
16 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['wrap'] = 'off';
17 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['format'] = 'html';
18 }