[BUGFIX] Update sys_refindex to reflect img tags in RTE content
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 // Add static template for Click-enlarge rendering
5 t3lib_extMgm::addStaticFile($_EXTKEY,'static/clickenlarge/','Clickenlarge Rendering');
6
7 // Add configuration of soft references on image tags in RTE content
8 require_once(t3lib_extMgm::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php');
9
10 // Add acronyms table
11 $GLOBALS['TCA']['tx_rtehtmlarea_acronym'] = Array (
12 'ctrl' => Array (
13 'title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym',
14 'label' => 'term',
15 'default_sortby' => 'ORDER BY term',
16 'sortby' => 'sorting',
17 'delete' => 'deleted',
18 'enablecolumns' => Array (
19 'disabled' => 'hidden',
20 'starttime' => 'starttime',
21 'endtime' => 'endtime',
22 ),
23 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
24 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'extensions/Acronym/skin/images/acronym.gif',
25 ),
26 );
27 t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
28 t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym','EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
29
30 // Add contextual help files
31 $htmlAreaRteContextHelpFiles = array(
32 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
33 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf',
34 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
35 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
36 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
37 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
38 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
39 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf',
40 );
41 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
42 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
43 }
44 unset($htmlAreaRteContextHelpFiles);
45
46 // Extend TYPO3 User Settings Configuration
47 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
48 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge(
49 $GLOBALS['TYPO3_USER_SETTINGS']['columns'],
50 array(
51 'rteWidth' => array(
52 'type' => 'text',
53 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth',
54 'csh' => 'xEXT_rtehtmlarea_General:rteWidth',
55 ),
56 'rteHeight' => array(
57 'type' => 'text',
58 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight',
59 'csh' => 'xEXT_rtehtmlarea_General:rteHeight',
60 ),
61 'rteResize' => array(
62 'type' => 'check',
63 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize',
64 'csh' => 'xEXT_rtehtmlarea_General:rteResize',
65 ),
66 'rteMaxHeight' => array(
67 'type' => 'text',
68 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight',
69 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight',
70 ),
71 'rteCleanPasteBehaviour' => array(
72 'type' => 'select',
73 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
74 'items' => array(
75 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
76 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
77 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat',
78 ),
79 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour',
80 ),
81 )
82 );
83 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
84 }
85 ?>