Prevent the richtexteditor from removing the onclick() attribute?

Hello,

We’re migrating a very large amount of content from our old site to a new Umbraco site. I’ve noticed that if I save some of this content in the richtexteditor, it removed the “onclick” attribute from a tags, even if I manually change them to a span instead.

I looked up the documentation to configure the TinyMCE editor so that it allows all tags and attributes by setting ValidElements to *[*], and although that resolved many of the other issues, it still insists on removing onclick from tags.

Here is my richtexteditor settings:

  "RichTextEditor": {
    "ValidElements": "*[*]",
    "CustomConfig": {
      "cleanup": "false",
      "verify_html": "false"
    }

Has anyone resolved this somehow?

Thank you!

John


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/109449-prevent-the-richtexteditor-from-removing-the-onclick-attribute