Enabling Javascript Events in Kupu
onClick and friends
Step 1:
The onClick attribute is not managed by the new Plone HTML filtering interface, so you need to customize Products/kupu/common/kupucontentfilters.js. Starting around line 296, swap in the commented-out values for the event types (or only a subset if you just need a subset) by removing '[]; // ' from these lines:
// All event attributes are here but commented out so we don't
// have to remove them later.
this.events = []; // 'onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup'.split('|');
this.focusevents = []; // ['onfocus','onblur']
this.loadevents = []; // ['onload', 'onunload']
this.formevents = []; // ['onsubmit','onreset']
this.inputevents = [] ; // ['onselect', 'onchange']
Step 2:
In portal_transforms, go into safe_html and set remove_javascript to 0
Rember that if portal_javascript is not in debug mode you'll need to restart to see the effects of your changes!

