Bug #23019 » rtehtmlarea_bugfix_14896_v2_trunk.patch
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php (copie de travail) | ||
---|---|---|
public $OutputCharset;
|
||
var $specConf;
|
||
var $LOCAL_LANG;
|
||
/**
|
||
* @var t3lib_PageRenderer
|
||
*/
|
||
protected $pageRenderer;
|
||
/**
|
||
* Draws the RTE as an iframe
|
||
... | ... | |
* LOAD JS, CSS and more
|
||
* =======================================
|
||
*/
|
||
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRenderer->setBackPath(TYPO3_mainDir);
|
||
$pageRenderer = $this->getPageRenderer();
|
||
// Preloading the pageStyle and including RTE skin stylesheets
|
||
$this->addPageStyle();
|
||
$this->addSkin();
|
||
... | ... | |
'textareaMaxHeight' => '600'
|
||
);
|
||
$pageRenderer->addInlineSettingArray('', $resizableSettings);
|
||
if ($GLOBALS['TSFE']->isINTincScript()) {
|
||
$GLOBALS['TSFE']->additionalHeaderData['rtehtmlarea'] = $pageRenderer->render(t3lib_PageRenderer::PART_HEADER);
|
||
}
|
||
/* =======================================
|
||
* DRAW THE EDITOR
|
||
* =======================================
|
||
... | ... | |
* @return void
|
||
*/
|
||
protected function addStyleSheet($key, $href, $title='', $relation='stylesheet') {
|
||
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
|
||
$pageRenderer->addCssFile($href, $relation, 'screen', $title);
|
||
$this->pageRenderer->addCssFile($href, $relation, 'screen', $title);
|
||
}
|
||
/**
|
||
* Return true if we are in the FE, but not in the FE editing feature of BE.
|
||
... | ... | |
OK = 0;
|
||
}';
|
||
}
|
||
/**
|
||
* Gets instance of PageRenderer
|
||
*
|
||
* @return t3lib_PageRenderer
|
||
*/
|
||
public function getPageRenderer() {
|
||
if (!$GLOBALS['TSFE']->isINTincScript()) {
|
||
$this->pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
|
||
$this->pageRenderer->setBackPath(TYPO3_mainDir);
|
||
} elseif (!isset($this->pageRenderer)) {
|
||
$this->pageRenderer = t3lib_div::makeInstance('t3lib_PageRenderer');
|
||
$this->pageRenderer->setTemplateFile($this->extHttpPath . 'templates/rtehtmlarea_pageheader_frontend.html');
|
||
$this->pageRenderer->setBackPath(TYPO3_mainDir);
|
||
}
|
||
return $this->pageRenderer;
|
||
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php']);
|
typo3/sysext/rtehtmlarea/templates/rtehtmlarea_pageheader_frontend.html (r?vision 0) | ||
---|---|---|
###CSS_INCLUDE###
|
||
###CSS_INLINE###
|
||
###JS_LIBS###
|
||
###JS_INCLUDE###
|
||
###JS_INLINE###
|
||
###HEADERDATA###
|