Bug #96485
openCKEditor : allowAttribs in YAML not taken into account / attributes are removed at save
0%
Description
Hi,
the following YAML configuration for CKEditor is not taken into account :
processing:
HTMLparser_db:
tags:
a:
allowedAttribs:
- class
- title
- target
- href
All attributes are removed when saving content element.
I've found the source of this issue in the HtmlParser (line 481) : https://github.com/TYPO3/typo3/blob/10.4/typo3/sysext/core/Classes/Html/HtmlParser.php#L481
The key '_allowedAttribs' doesn't exist.
Replacing it with 'allowedAttribs.' fixes the problem.
Updated by Eric Harrer almost 2 years ago
- Related to Bug #97499: Wrong notation for value of allowedAttribs in Processing.yaml added
Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473
Updated by Gerrit Code Review almost 2 years ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473
Updated by Gerrit Code Review almost 2 years ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473
Updated by Gerrit Code Review almost 2 years ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473
Updated by Riccardo De Contardi over 1 year ago
- Category set to RTE (rtehtmlarea + ckeditor)
Updated by Gerrit Code Review 12 months ago
Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473
Updated by Gerrit Code Review 12 months ago
Patch set 13 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74473