[TYPO3] Use of RTE in FCE leads to logout

Dmitry Dulepov [typo3] dmitry at typo3.org
Sun Sep 7 10:26:46 CEST 2008


Hi!

Sander van Gelderen wrote:
> I did not succeed in applying your patch, I get following output:
> 
> (23:25:54) [typo3_src-4.2.0] patch -p0 <8232_wizard_and_display.patch
> patching file typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
> Hunk #1 succeeded at 447 (offset 16 lines).
> Hunk #2 FAILED at 460.
> Hunk #3 FAILED at 474.
> 2 out of 3 hunks FAILED -- saving rejects to file 
> typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php.rej
> patching file typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php
> Hunk #1 FAILED at 308.
> 1 out of 1 hunk FAILED -- saving rejects to file 
> typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php.rej
> 
> I have examined the contents of the patch, and find the line numbers do 
> not match.

Yes, this is possible. Develop continues and lines shift.
> I also see other stuff I don't understand, for instance on line 34 of 
> the patchfile I do not see a '+', so I think this line would go untouched:

That's right.

> <textarea id="RTEarea' . $textAreaId . '" 
> name="'.htmlspecialchars($PA['itemFormElName']).'" 
> style="'.t3lib_div::deHSCentities(htmlspecialchars($this->RTEdivStyle)).'">'.t3lib_div::formatForTextarea($value).'</textarea> 
> 
> 
> But in my class.tx_rtehtmlarea_base.php file on line 476 I have this:
> 
> <textarea id="RTEarea'.$this->TCEform->RTEcounter.'" 
> name="'.htmlspecialchars($PA['itemFormElName']).'" 
> style="'.t3lib_div::deHSCentities(htmlspecialchars($this->RTEdivStyle)).'">'.t3lib_div::formatForTextarea($value).'</textarea> 
> 
> 
> It seems obvious this line should change too, to use the new $textAreaId 
> variable.
> 
> I do not have much experience using patches, maybe I have made some 
> mistake?

Just get SVN version of TYPO3 and try it. The patch is already included.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/


More information about the TYPO3-english mailing list