Bug #72898
closedDataHandler ignores type dependent RTE transformation configuration for new content elements
100%
Description
- the RTE configuration is dependent on the records type value.
- AND it is working on a new content element (uid="NEW12345…")
Steps to reproduce in TYPO3 8 and TYPO3 7.6:
- Set the following Page TSConfig
# Allow to create text and textmedia content elements without saving mod.wizards.newContentElement.wizardItems.common.show = header, text, textmedia # Allow only p and br tags in the default RTE configuration RTE.default.proc.entryHTMLparser_db.allowTags = p, br # extend the list of allowed tags for "text" elements. RTE.config.tt_content.bodytext.types.text { proc.entryHTMLparser_db.allowTags := addToList(ul, li) }
- Create a new "text" element by using the new content element wizard
- Add an unsorted list (ul) to the RTE bodytext field
- Save&Close the element
Expected result: As ul and li are allowed for text elements, they should not be removed or escaped, but written to the database
Real result: The ul and li tags will be escaped. The result is an HTML string visible to the editor.
This does not happen if you save the record, before adding the unsorted list to the bodytext.
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46162
Updated by Hannes Lau almost 9 years ago
I commited a patch that fixes the issue on my TYPO3 7.6 and TYPO3 8 instances.
TYPO3\CMS\Core\DataHandling\DataHander::checkValue_flex_procInData_travDS uses the same array to determine the type value in order to pick the correct RTE configuration.
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46162
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46162
Updated by Hannes Lau over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1dab32babef3a841d4281bed6874cc810a3c36bf.
Updated by Gerrit Code Review over 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47125
Updated by Hannes Lau over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset 8fb1179f6240c46a8240557b50f889da4ac1975f.