[TASK] RTE: Cleanup configuration of acronym table
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Add static template for Click-enlarge rendering
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
6
7 // Add contextual help files
8 $htmlAreaRteContextHelpFiles = array(
9 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
10 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf',
11 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
12 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
13 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
14 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
15 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
16 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf'
17 );
18 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
19 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
20 }
21 unset($htmlAreaRteContextHelpFiles);
22
23 // Extend TYPO3 User Settings Configuration
24 if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
25 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array(
26 'rteWidth' => array(
27 'type' => 'text',
28 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteWidth',
29 'csh' => 'xEXT_rtehtmlarea_General:rteWidth'
30 ),
31 'rteHeight' => array(
32 'type' => 'text',
33 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteHeight',
34 'csh' => 'xEXT_rtehtmlarea_General:rteHeight'
35 ),
36 'rteResize' => array(
37 'type' => 'check',
38 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteResize',
39 'csh' => 'xEXT_rtehtmlarea_General:rteResize'
40 ),
41 'rteMaxHeight' => array(
42 'type' => 'text',
43 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteMaxHeight',
44 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'
45 ),
46 'rteCleanPasteBehaviour' => array(
47 'type' => 'select',
48 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:rteCleanPasteBehaviour',
49 'items' => array(
50 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:plainText',
51 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteStructure',
52 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteFormat'
53 ),
54 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour'
55 )
56 ));
57 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
58 }
59 if (TYPO3_MODE === 'BE') {
60 // Register RTE browse links wizard
61 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
62 'rtehtmlarea_wizard_browse_links',
63 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/BrowseLinks/'
64 );
65
66 // Register RTE select image wizard
67 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
68 'rtehtmlarea_wizard_select_image',
69 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/SelectImage/'
70 );
71
72 // Register RTE user elements wizard
73 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
74 'rtehtmlarea_wizard_user_elements',
75 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/UserElements/'
76 );
77
78 // Register RTE parse html wizard
79 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
80 'rtehtmlarea_wizard_parse_html',
81 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/ParseHtml/'
82 );
83 }