Issue Bug Closed

#99738CKEditor 5 in TYPO3 12: New Data-Attribute is removed when the content element is saved

Alex Kellner 01/27/23, 21:05 updated 07/09/24, 12:46

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