Project

General

Profile

Bug #72875 » rtehtmlarea_bugfix_10479.patch

Administrator Admin, 2009-02-18 19:16

View differences:

typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (copie de travail)
* @return string Javascript code
*/
function setSaveRTE($RTEcounter, $formName, $textareaId) {
return 'if (RTEarea[\'' . $textareaId . '\']) { document.' . $formName . '[\'' . $textareaId . '\'].value = RTEarea[\'' . $textareaId . '\'][\'editor\'].getHTML(); } else { OK = 0; };';
return 'if (RTEarea["' . $textareaId . '"]) { document.' . $formName . '["' . $textareaId . '"].value = RTEarea["' . $textareaId . '"].editor.getPluginInstance("EditorMode").getHTML(); } else { OK = 0; };';
}
/**
......
* @return string Javascript code
*/
function setDeleteRTE($RTEcounter, $formName, $textareaId) {
return 'if (RTEarea[\'' . $textareaId . '\']) { RTEarea[\'' . $textareaId . '\'].deleted = true;}';
return 'if (RTEarea["' . $textareaId . '"]) { RTEarea["' . $textareaId . '"].deleted = true;}';
}
/**
(1-1/2)