TYPO3 CMS  TYPO3_7-6
ext_tables.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 // Add static template for Click-enlarge rendering
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('rtehtmlarea', 'static/clickenlarge/', 'Clickenlarge Rendering');
6 
7 // Add Abbreviation records (as of 7.0 not working in Configuration/TCA/Overrides)
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:rtehtmlarea/Resources/Private/Language/locallang_csh_abbreviation.xlf');
10 
11 // Add contextual help files
13  'General' => 'EXT:rtehtmlarea/Resources/Private/Language/locallang_csh.xlf',
14  'Abbreviation' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/Abbreviation/locallang_csh.xlf',
15  'EditElement' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/EditElement/locallang_csh.xlf',
16  'Language' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/Language/locallang_csh.xlf',
17  'MicrodataSchema' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/MicrodataSchema/locallang_csh.xlf',
18  'PlainText' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_csh.xlf',
19  'RemoveFormat' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/RemoveFormat/locallang_csh.xlf',
20  'TableOperations' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/TableOperations/locallang_csh.xlf'
21 ];
22 foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
24 }
26 
27 if (TYPO3_MODE === 'BE') {
28  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['RteImageSelector']['hooks']['editImageHandler'] = [
29  'handler' => \TYPO3\CMS\Rtehtmlarea\ImageHandler\EditImageHandler::class
30  ];
31 }
32 
33 // Extend TYPO3 User Settings Configuration
34 if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
35  $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], [
36  'rteWidth' => [
37  'type' => 'text',
38  'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteWidth',
39  'csh' => 'xEXT_rtehtmlarea_General:rteWidth'
40  ],
41  'rteHeight' => [
42  'type' => 'text',
43  'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteHeight',
44  'csh' => 'xEXT_rtehtmlarea_General:rteHeight'
45  ],
46  'rteResize' => [
47  'type' => 'check',
48  'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteResize',
49  'csh' => 'xEXT_rtehtmlarea_General:rteResize'
50  ],
51  'rteMaxHeight' => [
52  'type' => 'text',
53  'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteMaxHeight',
54  'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'
55  ],
56  'rteCleanPasteBehaviour' => [
57  'type' => 'select',
58  'renderType' => 'selectSingle',
59  'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:rteCleanPasteBehaviour',
60  'items' => [
61  'plainText' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:plainText',
62  'pasteStructure' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:pasteStructure',
63  'pasteFormat' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:pasteFormat'
64  ],
65  'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour'
66  ]
67  ]);
68  $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
69 }
$GLOBALS['PAGES_TYPES']
Definition: ext_tables.php:12
$htmlAreaRteContextHelpFiles
Definition: ext_tables.php:12