‪TYPO3CMS  9.5
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'][] = \‪TYPO3\CMS\T3editor\Hook\FileEditHook::class . '->preOutputProcessingHook';
5 
6 if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_BE) {
7  // We need this at a central place because CodeMirror uses relative paths in its module definitions and using PageRenderer is prohibited in FormEngine
8  \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
9  \‪TYPO3\CMS\Core\Page\PageRenderer::class
10  )->addRequireJsConfiguration([
11  'packages' => [
12  [
13  'name' => 'cm',
14  'location' => \‪TYPO3\CMS\Core\Utility\PathUtility::getAbsoluteWebPath(
15  \‪TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName('EXT:t3editor/Resources/Public/JavaScript/Contrib/cm')
16  ),
17  'main' => 'lib/codemirror',
18  ],
19  ],
20  ]);
21 }
22 
23 ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1433089350] = [
24  'nodeName' => 't3editor',
25  'priority' => 40,
26  'class' => \TYPO3\CMS\T3editor\Form\Element\T3editorElement::class,
27 ];
‪TYPO3
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5