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