[BUGFIX] Move TCA modification of EXT:t3editor to TCA/Overrides
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / Configuration / TCA / Overrides / tt_content.php
1 <?php
2
3 if (TYPO3_MODE === 'BE') {
4 // Add the t3editor wizard on the bodytext field of tt_content
5 $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['t3editor'] = array(
6 'enableByTypeConfig' => 1,
7 'type' => 'userFunc',
8 'userFunc' => 'TYPO3\\CMS\\T3editor\\FormWizard->main',
9 'title' => 't3editor',
10 'icon' => 'wizard_table.gif',
11 'module' => array(
12 'name' => 'wizard_table'
13 ),
14 'params' => array(
15 'format' => 'html',
16 'style' => 'width:98%; height: 60%;'
17 )
18 );
19
20 // Activate the t3editor only for type html
21 $GLOBALS['TCA']['tt_content']['types']['html']['showitem'] = str_replace('bodytext,', 'bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.html_formlabel;;nowrap:wizards[t3editor],', $GLOBALS['TCA']['tt_content']['types']['html']['showitem']);
22 }