[TASK] RTE: Rename "acronym" plugin and button to "abbreviation"
[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 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xlf');
9 $htmlAreaRteContextHelpFiles = array(
10 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
11 'Abbreviation' => 'EXT:' . $_EXTKEY . '/extensions/Abbreviation/locallang_csh.xlf',
12 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf',
13 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf',
14 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf',
15 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf',
16 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf',
17 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf'
18 );
19 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
20 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
21 }
22 unset($htmlAreaRteContextHelpFiles);
23
24 // Extend TYPO3 User Settings Configuration
25 if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
26 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array(
27 'rteWidth' => array(
28 'type' => 'text',
29 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteWidth',
30 'csh' => 'xEXT_rtehtmlarea_General:rteWidth'
31 ),
32 'rteHeight' => array(
33 'type' => 'text',
34 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteHeight',
35 'csh' => 'xEXT_rtehtmlarea_General:rteHeight'
36 ),
37 'rteResize' => array(
38 'type' => 'check',
39 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteResize',
40 'csh' => 'xEXT_rtehtmlarea_General:rteResize'
41 ),
42 'rteMaxHeight' => array(
43 'type' => 'text',
44 'label' => 'LLL:EXT:rtehtmlarea/locallang.xlf:rteMaxHeight',
45 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'
46 ),
47 'rteCleanPasteBehaviour' => array(
48 'type' => 'select',
49 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:rteCleanPasteBehaviour',
50 'items' => array(
51 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:plainText',
52 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteStructure',
53 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteFormat'
54 ),
55 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour'
56 )
57 ));
58 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
59 }
60 if (TYPO3_MODE === 'BE') {
61 // Register RTE browse links wizard
62 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
63 'rtehtmlarea_wizard_browse_links',
64 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/BrowseLinks/'
65 );
66
67 // Register RTE select image wizard
68 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
69 'rtehtmlarea_wizard_select_image',
70 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/SelectImage/'
71 );
72
73 // Register RTE user elements wizard
74 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
75 'rtehtmlarea_wizard_user_elements',
76 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/UserElements/'
77 );
78
79 // Register RTE parse html wizard
80 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
81 'rtehtmlarea_wizard_parse_html',
82 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/ParseHtml/'
83 );
84 }