[TYPO3-rte] Problems with RTE while fronted Editing

Stanislas Rolland typo3 at sjbr.ca
Mon Jan 17 06:01:00 CET 2011


  Hi Eike,
> i'm not sure if this is the right list.
> I have a problem with the rte htmlarea.
> Im writing an fronted editing extension, but when i use more than one
> RTE in my form just the first one is working. But the toolbar is
> doubled, meaning that there are 2 toolbars with when i want to use 2 rte
> and so on.
> Does anyone have an idea what this might be?
> I'm running typo3 4.4.4 and htmlarea 2.0.5.
>
> Regards, Eike
>
> The Code i use:
>
> $this->RTEObj = t3lib_div::makeInstance('tx_rtehtmlarea_pi2');
> $this->formName = 'prexperts';
>
> $this->RTEcounter++;

Make sure that the $this->RTEcounter has a different value for each 
instance RTE field.

Regards,
Stanislas


> $this->formName = 'tx_cal_controller';
> $this->strEntryField = 'description';
> $this->PA['itemFormElName'] = 'tx_cal_controller[description]';
> $this->PA['itemFormElValue'] = '';
> $this->thePidValue = $GLOBALS['TSFE']->id;
> $RTEItem=$this->RTEObj->drawRTE($this,'tx_cal_event',$this->strEntryField,$row=array(),
> $this->PA, $this->specConf, $this->thisConfig, $this->RTEtypeVal, '',
> $this->thePidValue);
>
> $sims['###ADDITIONALJS_PRE###'] = $this->additionalJS_initial.'
> 			<script type="text/javascript">'. implode(chr(10),
> $this->additionalJS_pre).'
> 			</script>';
> 		$sims['###ADDITIONALJS_POST###'] = '
> 			<script type="text/javascript">'. implode(chr(10),
> $this->additionalJS_post).'
> 			</script>';
> 		$sims['###ADDITIONALJS_SUBMIT###'] = implode(';',
> $this->additionalJS_submit);
>
> 	
> $content=''.$sims['###ADDITIONALJS_PRE###'].''.$RTEItem.''.$sims['###ADDITIONALJS_POST###']
> .'';
>
> return $this->pi_wrapInBaseClass($content);
>
>
>
>



More information about the TYPO3-project-rte mailing list