-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_localconf.php
17 lines (14 loc) · 918 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['inline_page_editing'] = \NamelessCoder\InlinePageEditing\Hooks\ContentPreview::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Backend\Controller\PageLayoutController::class]['initActionHook']['inline_page_editing'] = \NamelessCoder\InlinePageEditing\Hooks\AssetAttacher::class . '->includeJavascriptInPageRendererIfNotIncluded';
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Backend\Controller\EditDocumentController::class,
'initAfter',
\NamelessCoder\InlinePageEditing\Hooks\ContentPreview::class,
'processEditForm'
);