Index: typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php =================================================================== --- typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (révision 4000) +++ typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (copie de travail) @@ -431,6 +431,7 @@ } // Register RTE windows $this->TCEform->RTEwindows[] = $PA['itemFormElName']; + $textAreaId = htmlspecialchars($PA['itemFormElName']); // Check if wizard_rte called this for fullscreen edtition; if so, change the size of the RTE to fullscreen using JS if (basename(PATH_thisScript) == 'wizard_rte.php') { @@ -443,11 +444,9 @@ $editorWrapWidth = '100%'; $editorWrapHeight = '100%'; $this->RTEdivStyle = 'position:relative; left:0px; top:0px; height:100%; width:100%; border: 1px solid black; padding: 2px 0px 2px 2px;'; - $this->TCEform->additionalJS_post[] = $this->setRTEsizeByJS('RTEarea'.$this->TCEform->RTEcounter, $height, $width); + $this->TCEform->additionalJS_post[] = $this->setRTEsizeByJS('RTEarea' . $textAreaId, $height, $width); } - $textAreaId = htmlspecialchars($PA['itemFormElName']); - // Register RTE in JS: $this->TCEform->additionalJS_post[] = $this->registerRTEinJS($this->TCEform->RTEcounter, $table, $row['uid'], $field, $textAreaId); @@ -459,8 +458,8 @@ $visibility = 'hidden'; $unuqid = uniqid('rte'); $item = $this->triggerField($PA['itemFormElName']).' -
-