Actions
Bug #96485
openCKEditor : allowAttribs in YAML not taken into account / attributes are removed at save
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2022-01-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions