[TYPO3-core] FYI: fixed bug 6340: rtehtmlarea not working with "Editforms on page" option

Stanislas Rolland stanislas.rolland at fructifor.ca
Tue Oct 16 16:33:57 CEST 2007


Andreas Otto a écrit :
> 
> I am currently working on a FE plugin which allows the editing of records
> and renders the whole form using t3lib_TCEforms_FE. I do initialize
> TCEforms like this:
> 
> $this->tceforms = t3lib_div::makeInstance('t3lib_TCEforms_FE');
> $this->tceforms->prependFormFieldNames = 'TSFE_EDIT[data]';
> $this->tceforms->prependFormFieldNames_file = 'TSFE_EDIT_file';
> $this->tceforms->doSaveFieldName = 'TSFE_EDIT[doSave]';
> $this->tceforms->formName
> = 'TSFE_EDIT_FORM_'.substr($GLOBALS['TSFE']->uniqueHash(),0,4);
> $this->tceforms->disableWizards = true;
> $this->tceforms->disableRTE = false;
> $this->tceforms->backPath = TYPO3_mainDir;
> $this->tceforms->defStyle = '';
> $this->tceforms->edit_showFieldHelp = '';
> $this->tceforms->helpTextFontTag='';
> 
> Before your changes to rtehtmlarea the RTE was loading fine but now I do get
> a JS error.
> 
> I guess this is related to the change from checking is_object($TSFE) to
> checking for $this->is_FE().
Indeed.
> 
> Do you have any ideas how to solve the issue?
> 
I suggest to change the field names so that they start with something 
different from 'TSFE_EDIT'.

Stanislas



More information about the TYPO3-team-core mailing list