[!!!][TASK] Gifbuilder: Always use full filename of original file as prefix
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3editor / ext_tables.php
index bdc4440..abe38ba 100644 (file)
@@ -1,14 +1,11 @@
 <?php
 <?php
-
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
+defined('TYPO3_MODE') or die();
+
+if (TYPO3_MODE === 'BE') {
+       // Register AJAX handlers:
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('T3Editor::saveCode', \TYPO3\CMS\T3editor\T3editor::class . '->ajaxSaveCode');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('T3Editor::getPlugins', \TYPO3\CMS\T3editor\T3editor::class . '->getPlugins');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('T3Editor_TSrefLoader::getTypes', \TYPO3\CMS\T3editor\TypoScriptReferenceLoader::class . '->processAjaxRequest');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('T3Editor_TSrefLoader::getDescription', \TYPO3\CMS\T3editor\TypoScriptReferenceLoader::class . '->processAjaxRequest');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('CodeCompletion::loadTemplates', \TYPO3\CMS\T3editor\CodeCompletion::class . '->processAjaxRequest');
 }
 }
-
-if (TYPO3_MODE == 'BE') {
-       $t3editorPath = t3lib_extMgm::extPath('t3editor');
-
-       // register AJAX calls
-       $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['tx_t3editor::saveCode'] = $t3editorPath . 'class.tx_t3editor.php:tx_t3editor->saveCode';
-}
-
-?>