Skip to content

Editor CMS block/page remove attribut onclick

I’m trying to save code like this in my CMS block:

<p class="bold-text" onclick="sayhello()">Hello world</p>

When I look at the result by clicking on “Show/Hide Editor”.
If I return to the html editor my “onclick” attribute has disappeared and I have this result:

<p class="bold-text">Hello world</p>

How to make onclick attribute stay ?