‪TYPO3CMS  10.4
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 defined('TYPO3_MODE') or die();
4 
5 // Register FormEngine node type resolver hook to render RTE in FormEngine if enabled
6 ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeResolver'][1480314091] = [
7  'nodeName' => 'text',
8  'priority' => 50,
9  'class' => \‪TYPO3\CMS\RteCKEditor\Form\Resolver\RichTextNodeResolver::class,
10 ];
11 
12 ‪if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_BE) {
13  \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
14  \‪TYPO3\CMS\Core\Page\PageRenderer::class
15  )->addRequireJsConfiguration([
16  'shim' => [
17  'ckeditor' => ['exports' => 'CKEDITOR']
18  ],
19  'paths' => [
20  'ckeditor' => \‪TYPO3\CMS\Core\Utility\PathUtility::getAbsoluteWebPath(
21  \‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('rte_ckeditor', 'Resources/Public/JavaScript/Contrib/')
22  ) . 'ckeditor'
23  ]
24  ]);
25 }
26 
27 // Register the presets
28 if (empty(‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'])) {
29  ‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:rte_ckeditor/Configuration/RTE/Default.yaml';
30 }
31 if (empty(‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['minimal'])) {
32  ‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['minimal'] = 'EXT:rte_ckeditor/Configuration/RTE/Minimal.yaml';
33 }
34 if (empty(‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['full'])) {
35  ‪$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['full'] = 'EXT:rte_ckeditor/Configuration/RTE/Full.yaml';
36 }
‪TYPO3
‪if
‪if(PHP_SAPI !=='cli')
Definition: splitAcceptanceTests.php:33
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5