#99738CKEditor 5 in TYPO3 12: New Data-Attribute is removed when the content element is saved
Description
In TYPO3 12 we rebuild the CKEditor Plugin in LUX. That plugin simply adds 3 data-attributes to a link tag.
In TYPO3 11 we use this settings in CKEditor.yaml:
editor:
config:
extraAllowedContent: 'a[data-*];'
and in addition this Page TSConfig:
RTE.default.proc.entryHTMLparser_db.tags {
a.allowedAttribs := addToList(data-lux-email4link-sendemail,data-lux-email4link-text,data-lux-email4link-title,data-lux-linklistener)
}
Are there any breaking changes here? Any hints?
—-
Update: When toggling the HTML-view in CKEditor, the data-attributes are still existing – that’s why I think the new problem is TYPO3 related.
Reviews 6
- 12.4 81995[BUGFIX] Avoid <o:p> tags pasted from MS Word into CKEditor5
- main 82012[BUGFIX] Avoid <o:p> tags pasted from MS Word into CKEditor5
- main 81383[DOCS] Document usage of "htmlSupport" option in EXT:rte_ckeditor
- 12.4 81341[DOCS] Document usage of "htmlSupport" option in EXT:rte_ckeditor
- 12.4 81338[BUGFIX] Add CKEditor5 migrator for {extraA,disa,a}llowedContent
- main 81316[BUGFIX] Add CKEditor5 migrator for {extraA,disa,a}llowedContent