Bug #23274 ยป rtehtmlarea_bugfix_15244_trunk.patch
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php (copie de travail) | ||
---|---|---|
// Register RTE windows:
|
||
$this->TCEform->RTEwindows[] = $PA['itemFormElName'];
|
||
$textAreaId = htmlspecialchars($PA['itemFormElName']);
|
||
$textAreaId = htmlspecialchars($PA['itemFormElName']) . '_' . strval($this->TCEform->RTEcounter);
|
||
// Register RTE in JS:
|
||
$this->TCEform->additionalJS_post[] = $this->registerRTEinJS($this->TCEform->RTEcounter, '', '', '',$textAreaId);
|
||
... | ... | |
function setSaveRTE($RTEcounter, $form, $textareaId) {
|
||
return '
|
||
if (RTEarea[\'' . $textareaId . '\'] && !RTEarea[\'' . $textareaId . '\'].deleted) {
|
||
fields = document.getElementsByName(\'' . $textareaId . '\');
|
||
field = fields.item(0);
|
||
var field = document.getElementById(\'RTEarea' . $textareaId . '\');
|
||
if (field && field.nodeName.toLowerCase() == \'textarea\') {
|
||
field.value = RTEarea[\'' . $textareaId . '\'][\'editor\'].getHTML();
|
||
}
|