Added feature #2474: htmlArea RTE: Add general element properties editing dialogue
[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 acronyms table
8 $TCA['tx_rtehtmlarea_acronym'] = Array (
9 'ctrl' => Array (
10 'title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym',
11 'label' => 'term',
12 'default_sortby' => 'ORDER BY term',
13 'sortby' => 'sorting',
14 'delete' => 'deleted',
15 'enablecolumns' => Array (
16 'disabled' => 'hidden',
17 'starttime' => 'starttime',
18 'endtime' => 'endtime',
19 ),
20 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
21 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'extensions/Acronym/skin/images/acronym.gif',
22 ),
23 );
24 t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
25
26 // Add contextual help files
27 $htmlAreaRteContextHelpFiles = array(
28 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xml',
29 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xml',
30 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xml',
31 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml',
32 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xml',
33 );
34 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
35 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
36 }
37 unset($htmlAreaRteContextHelpFiles);
38
39 // Extend TYPO3 User Settings Configuration
40 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
41 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge(
42 $GLOBALS['TYPO3_USER_SETTINGS']['columns'],
43 array(
44 'rteWidth' => array(
45 'type' => 'text',
46 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth',
47 'csh' => 'xEXT_rtehtmlarea_General:rteWidth',
48 ),
49 'rteHeight' => array(
50 'type' => 'text',
51 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight',
52 'csh' => 'xEXT_rtehtmlarea_General:rteHeight',
53 ),
54 'rteResize' => array(
55 'type' => 'check',
56 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize',
57 'csh' => 'xEXT_rtehtmlarea_General:rteResize',
58 ),
59 'rteMaxHeight' => array(
60 'type' => 'text',
61 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight',
62 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight',
63 ),
64 'rteCleanPasteBehaviour' => array(
65 'type' => 'select',
66 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
67 'items' => array(
68 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
69 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
70 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat',
71 ),
72 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour',
73 ),
74 )
75 );
76 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
77 }
78 ?>