Added feature #8349: htmlArea RTE: Clean paste feature with three options
[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 foreach ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'] as $pluginName => $config) {
28 if ($config['contextHelpFile']) {
29 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $pluginName, $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'][$pluginName]['contextHelpFile']);
30 }
31 }
32
33 // Extend TYPO3 User Settings Configuration
34 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
35 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge(
36 $GLOBALS['TYPO3_USER_SETTINGS']['columns'],
37 array(
38 'rteCleanPasteBehaviour' => array(
39 'type' => 'select',
40 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour',
41 'items' => array(
42 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText',
43 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure',
44 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat',
45 ),
46 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour',
47 ),
48 )
49 );
50 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
51 }
52 ?>