Bug #72875 » rtehtmlarea_bugfix_10479.patch
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;}';
|
||
}
|
||
/**
|