[TASK] Upgrade grunt-contrib-uglify 2.0.0 ❯ 3.3.0
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / ext_localconf.php
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 ];