/** * Initialize document template object * * @return void */ protected function initDocumentTemplate() { parent::initDocumentTemplate(); $this->doc->getContextMenuCode(); // Apply the same styles as those of the base script $this->doc->bodyTagId = 'typo3-browse-links-php'; $this->doc->getPageRenderer()->addCssFile($this->doc->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3skin') . 'rtehtmlarea/htmlarea.css'); // Add attributes to body tag. Note: getBodyTagAdditions will invoke the hooks $this->doc->bodyTagAdditions = $this->getBodyTagAdditions(); $this->doc->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/LegacyTree', 'function(Tree) { Tree.ajaxID = "SC_alt_file_navframe::expandCollapse"; }'); }
/** * Initialize document template object * * @return void */ protected function initDocumentTemplate() { parent::initDocumentTemplate(); $this->doc->bodyTagId = 'typo3-browse-links-php'; $this->doc->bodyTagAdditions = $this->getBodyTagAdditions(); $this->doc->JScode .= $this->doc->wrapScriptTags(' Tree.ajaxID = "SC_alt_file_navframe::expandCollapse"; '); $this->doc->getPageRenderer()->addCssFile($this->doc->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3skin') . 'rtehtmlarea/htmlarea.css'); $this->doc->getContextMenuCode(); }
/** * Initialize document template object * * @return void */ protected function initDocumentTemplate() { parent::initDocumentTemplate(); $this->doc->getContextMenuCode(); // Apply the same styles as those of the base script $this->doc->bodyTagId = 'typo3-browse-links-php'; $this->doc->getPageRenderer()->addCssFile($this->doc->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3skin') . 'rtehtmlarea/htmlarea.css'); // Add attributes to body tag. Note: getBodyTagAdditions will invoke the hooks $this->doc->bodyTagAdditions = $this->getBodyTagAdditions(); }
/** * Initialize document template object * * @return void */ protected function initDocumentTemplate() { parent::initDocumentTemplate(); $this->doc->bodyTagAdditions = 'onload="SelectImage.initEventListeners();"'; $pageRenderer = $this->getPageRenderer(); $pageRenderer->addCssFile(ExtensionManagementUtility::extRelPath('t3skin') . 'rtehtmlarea/htmlarea.css'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LegacyTree', 'function(Tree) { Tree.ajaxID = "sc_alt_file_navframe_expandtoggle"; }'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Rtehtmlarea/Modules/SelectImage', 'function(SelectImage) { SelectImage.editorNo = ' . GeneralUtility::quoteJSvalue($this->editorNo) . '; SelectImage.act = ' . GeneralUtility::quoteJSvalue($this->act ?: reset($this->allowedItems)) . '; SelectImage.sys_language_content = ' . GeneralUtility::quoteJSvalue($this->sys_language_content) . '; SelectImage.RTEtsConfigParams = ' . GeneralUtility::quoteJSvalue(rawurlencode($this->RTEtsConfigParams)) . '; SelectImage.bparams = ' . GeneralUtility::quoteJSvalue($this->bparams) . '; }'); }
/** * Initialize document template object * * @return void */ protected function initDocumentTemplate() { parent::initDocumentTemplate(); $this->doc->bodyTagId = 'typo3-browse-links-php'; $this->doc->bodyTagAdditions = $this->getBodyTagAdditions(); $this->doc->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/LegacyTree', 'function(Tree) { Tree.ajaxID = "SC_alt_file_navframe::expandCollapse"; }'); $this->doc->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Rtehtmlarea/Modules/SelectImage', 'function(SelectImage) { SelectImage.editorNo = ' . GeneralUtility::quoteJSvalue($this->editorNo) . '; SelectImage.act = ' . GeneralUtility::quoteJSvalue($this->act ?: reset($this->allowedItems)) . '; SelectImage.sys_language_content = ' . GeneralUtility::quoteJSvalue($this->sys_language_content) . '; SelectImage.RTEtsConfigParams = ' . GeneralUtility::quoteJSvalue(rawurlencode($this->RTEtsConfigParams)) . '; SelectImage.bparams = ' . GeneralUtility::quoteJSvalue($this->bparams) . '; }'); $this->doc->getPageRenderer()->addCssFile($this->doc->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3skin') . 'rtehtmlarea/htmlarea.css'); $this->doc->getContextMenuCode(); }