Am Anfang der Klasse die du schreibst musst du zunächst mal das hier eingeben:
/**
* Start adding fields for the RTE API
*/
var $RTEObj;
var $strEntryField;
var $docLarge = 0;
var $RTEcounter = 0;
var $formName;
var $additionalJS_initial = ''; // Initial JavaScript to be printed before the form (should be in head, but cannot due to IE6 timing bug)
var $additionalJS_pre = array(); // Additional JavaScript to be printed before the form
var $additionalJS_post = array(); // Additional JavaScript to be printed after the form
var $additionalJS_submit = array(); // Additional JavaScript to be executed on submit
var $PA = array(
'itemFormElName' => '',
'itemFormElValue' => '',
);
var $specConf = array();
var $thisConfig = array();
var $RTEtypeVal = 'text';
var $thePidValue;
/**
* End adding fields for the RTE API
*/
An der Stelle, wo das Formular ausgegeben wird kommt dann ungefährt sowas
$content .= "<form method="\"post\"" name="\"fussball-news\"" onsubmit="\"".implode(';'," this-="">additionalJS_submit)."\">";
/**
* Start setting the RTE markers
*/
$content .= nl2br(print_r($_GLOBALS,true));
if(!$this->RTEObj) $this->RTEObj = t3lib_div::makeInstance('tx_rtehtmlarea_pi2');
if($this->RTEObj->isAvailable()) {
$this->RTEcounter++;
$tabelle = "tx_fussballnews_news";
$this->formName = 'fussball-news';
$this->strEntryField = 'text';
$this->PA['itemFormElName'] = 'tx_fussballnews_pi1[text]';
$this->PA['itemFormElValue'] = $this->postvars[$this->strEntryField];
$this->thePidValue = $GLOBALS['TSFE']->id;
$RTEItem = $this->RTEObj->drawRTE($this,$tabelle,$this->strEntryField,$row=array(), $this->PA, $this->specConf, $this->thisConfig, $this->RTEtypeVal, '', $this->thePidValue);
$content .= $this->additionalJS_initial.'<script type="text/javascript">'. implode(chr(10), $this->additionalJS_pre).'</script>';
$content .= $RTEItem;
$content .= '<script type="text/javascript">'. implode(chr(10), $this->additionalJS_post).' </script>';
}
/**
* End setting the RTE markers
*/
$content .= "<input type="\"submit\"" />";
$content .= "</form>";
Dieses Editor wird geladen hatte ich auch. Problem war, das ich die Funktionen $this->additionalJS_post, $this->additionalJS_pre, $this->additionalJS_initial und $this->additionalJS_submit nicht ordentlich an der richtigen Stelle eingebunden hatte.