[TASK] Resolve cross dep between EXT:backend and EXT:feedit
[Packages/TYPO3.CMS.git] / typo3 / sysext / feedit / ext_localconf.php
index 943ffcd..b356fa8 100644 (file)
@@ -3,3 +3,12 @@ defined('TYPO3_MODE') or die();
 
 // Register the edit panel view.
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'] = \TYPO3\CMS\Feedit\FrontendEditPanel::class;
+
+if (TYPO3_MODE === 'FE') {
+    \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
+        \TYPO3\CMS\Backend\Controller\EditDocumentController::class,
+        'initAfter',
+        \TYPO3\CMS\Feedit\FrontendEditAssetLoader::class,
+        'attachAssets'
+    );
+}