Issue Bug Closed

#25175More than one Frontend RTE duplicates entire Page

z.c 02/25/11, 12:16 updated 06/15/15, 10:53

Description

When I include more than one RTE in my Frontend-Extension (multiple calls to tx_rtehtmlarea_pi2::drawRTE) the entire Page-Content (without USER_INT’s) is rendered into the head of the Page ($GLOBALS[‘TSFE’]->additionalHeaderData[‘rtehtmlarea’]).

This happens in Line 240 of “ * $Id: class.tx_rtehtmlarea_pi2.php 10503 2011-02-20 04:20:35Z stan $ *”.

Possible Workaround:
Include something like this after the first Call to tx_rtehtmlarea_pi2::drawRTE ($this->RTEcounter == 1)
{
$this->additionalHeaderData_rtehtmlarea = $GLOBALS[‘TSFE’]->additionalHeaderData[‘rtehtmlarea’];
}
else
{
$GLOBALS[‘TSFE’]->additionalHeaderData[‘rtehtmlarea’] = $this->additionalHeaderData_rtehtmlarea;
}
(issue imported from #M17763)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.