[TYPO3-rte] Problems with RTE while fronted Editing

Eike Starkmann starkmann at undkonsorten.com
Mon Jan 17 17:33:58 CET 2011



Am 17.01.2011 06:01, schrieb Stanislas Rolland:
>  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.
Thx, but that is not the problem.
This are the two instances:

RTEcounter: 1
<input type="hidden" name="tx_cal_controller[_TRANSFORM_description]"
value="RTE" />
<div id="pleasewaittx_cal_controller_description__1" class="pleasewait"
style="display: block;" >The editor is being loaded. Please wait...</div>
<div id="editorWraptx_cal_controller_description__1" class="editorWrap"
style="visibility: hidden; height:382px; width:462px;">
<textarea id="RTEareatx_cal_controller_description__1"
name="tx_cal_controller[description]" rows="0" cols="0"
style="position:relative; left:0px; top:0px; height:380px; width:460px;
border: 1px solid black;">
</textarea>
</div>

RTEcounter: 2
<input type="hidden" name="tx_cal_controller[_TRANSFORM_description]"
value="RTE" />
<div id="pleasewaittx_cal_controller_description__2" class="pleasewait"
style="display: block;" >The editor is being loaded. Please wait...</div>
<div id="editorWraptx_cal_controller_description__2" class="editorWrap"
style="visibility: hidden; height:382px; width:462px;">
<textarea id="RTEareatx_cal_controller_description__2"
name="tx_cal_controller[description]" rows="0" cols="0"
style="position:relative; left:0px; top:0px; height:380px; width:460px;
border: 1px solid black;">
</textarea>
</div>

But i still get an display error in the first RTE:
http://img502.imageshack.us/i/bugp.png/

And i just can't figure out why.


Regards, Eike
> 
> 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