Issue Bug Closed

#83639CKEditor: Using "data-cke-pa-onclick" to generate onclick attribute

Alessandro Schmitz 01/22/18, 17:25 updated 08/01/25, 13:00

Description

Following looks like a bug to me:

I wanted to add an onclick attribute to an tag.
As CKEditor uses onclick-Events it’s recommend (or even necessary?) to use data attributes like

data-cke-pa-onclick

which should be parsed on output.

In the backend this gets parsed on save, so after saving the record I have .
Once I save this record then again (e.g. editors change some text in this record), the onclick gets removed as it’s not allowed here.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.