コード例 #1
0
	/**
	 * 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";
		}');
	}
コード例 #2
0
    /**
     * 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();
    }
コード例 #3
0
ファイル: BrowseLinks.php プロジェクト: allipierre/Typo3
 /**
  * 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();
 }
コード例 #4
0
ファイル: SelectImage.php プロジェクト: rickymathew/TYPO3.CMS
    /**
     * 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) . ';
		}');
    }
コード例 #5
0
ファイル: SelectImage.php プロジェクト: adrolli/TYPO3.CMS
    /**
     * 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();
    }