[FEATURE] htmlArea RTE: Edit HTML5 microdata items
[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 t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym','EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
26
27 // Add contextual help files
28 $htmlAreaRteContextHelpFiles = array(
29 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
30 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf',
31 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
32 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
33 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
34 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
35 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
36 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf',
37 );
38 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
39 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
40 }
41 unset($htmlAreaRteContextHelpFiles);
42
43 // Extend TYPO3 User Settings Configuration
44 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
45 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge(
46 $GLOBALS['TYPO3_USER_SETTINGS']['columns'],
47 array(
48 'rteWidth' => array(
49 'type' => 'text',
50 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth',
51 'csh' => 'xEXT_rtehtmlarea_General:rteWidth',
52 ),
53 'rteHeight' => array(
54 'type' => 'text',
55 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight',
56 'csh' => 'xEXT_rtehtmlarea_General:rteHeight',
57 ),
58 'rteResize' => array(
59 'type' => 'check',
60 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize',
61 'csh' => 'xEXT_rtehtmlarea_General:rteResize',
62 ),
63 'rteMaxHeight' => array(
64 'type' => 'text',
65 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight',
66 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight',
67 ),
68 'rteCleanPasteBehaviour' => array(
69 'type' => 'select',
70 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
71 'items' => array(
72 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
73 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
74 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat',
75 ),
76 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour',
77 ),
78 )
79 );
80 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
81 }
82 ?>