[BUGFIX] t3editor: $TCA for tt_content is not loaded in ext_tables.php
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 if (TYPO3_MODE === 'BE') {
7 // Register AJAX handlers:
8 $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor::saveCode'] = 'EXT:t3editor/classes/class.tx_t3editor.php:tx_t3editor->ajaxSaveCode';
9 $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor::getPlugins'] = 'EXT:t3editor/classes/class.tx_t3editor.php:tx_t3editor->getPlugins';
10 $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor_TSrefLoader::getTypes'] = 'EXT:t3editor/classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:tx_t3editor_TSrefLoader->processAjaxRequest';
11 $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor_TSrefLoader::getDescription'] = 'EXT:t3editor/classes/ts_codecompletion/class.tx_t3editor_tsrefloader.php:tx_t3editor_TSrefLoader->processAjaxRequest';
12 $TYPO3_CONF_VARS['BE']['AJAX']['tx_t3editor_codecompletion::loadTemplates'] = 'EXT:t3editor/classes/ts_codecompletion/class.tx_t3editor_codecompletion.php:tx_t3editor_codecompletion->processAjaxRequest';
13
14 t3lib_div::loadTCA('tt_content');
15 // Add the t3editor wizard on the bodytext field of tt_content
16 $TCA['tt_content']['columns']['bodytext']['config']['wizards']['t3editor'] = array(
17 'enableByTypeConfig' => 1,
18 'type' => 'userFunc',
19 'userFunc' => 'EXT:t3editor/classes/class.tx_t3editor_tceforms_wizard.php:tx_t3editor_tceforms_wizard->main',
20 'title' => 't3editor',
21 'icon' => 'wizard_table.gif',
22 'script' => 'wizard_table.php',
23 'params' => array(
24 'format' => 'html',
25 'style' => 'width:98%; height: 200px;',
26 ),
27 );
28 // Activate the t3editor only for type html
29 $TCA['tt_content']['types']['html']['showitem'] = str_replace('bodytext,', 'bodytext;LLL:EXT:cms/locallang_ttc.xml:bodytext.ALT.html_formlabel;;nowrap:wizards[t3editor],', $TCA['tt_content']['types']['html']['showitem']);
30 }
31 ?>