#72322Javascript error on deleting dce section with RTE
Description
With the Update from 6.2.14 to 6.2.16 an error occur, when you click on the delete Icon of a section, in a DCE.
Reproduce:
1. Create DCE, section with RTE-Field in it
2. Insert DCE on new page with some sections and save
3. Now try to delete section, a javascript error occur
The onclick-method for delete has wrong escaped Javascript code.
Changing typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaBase.php Line 1338 back to the change of 6.2.14 its working as expected. To have still the new Security fix following is working:
change:
return ‘if (RTEarea[’ . GeneralUtility::quoteJSvalue($textareaId) . ‘]) { RTEarea[’ . GeneralUtility::quoteJSvalue($textareaId) . ‘].deleted = true;}’;
to
return ‘if (RTEarea[“’ . GeneralUtility::quoteJSvalue($textareaId) . ‘“]) { RTEarea[”’ . GeneralUtility::quoteJSvalue($textareaId) . ‘”].deleted = true;}’;