[BUGFIX] Fix various TCA issues
[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 (!is_array($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'])) {
7 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides'] = array();
8 }
9 if (!is_array($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'])) {
10 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext'] = array();
11 }
12 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['defaultExtras'] = 'nowrap:wizards[t3editor]';
13 if (!is_array($GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'])) {
14 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config'] = array();
15 }
16 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['renderType'] = 't3editor';
17 $GLOBALS['TCA']['tt_content']['types']['html']['columnsOverrides']['bodytext']['config']['format'] = 'html';
18 }