Closed bartromgens closed 9 years ago
Probably not. The onclick attribute is not one of the whitelisted attributes in the RICHTEXT_ALLOWED_ATTRIBUTES setting. Also, the script tag is filtered because it is not in the whitelisted RICHTEXT_SCRIPT_TAG_WHITELIST setting.
This is a problem and should probably be fixed.
This now works. I have fixed this in the following way:
In order to make a show/hide functionality, do the following:
<script src="/static/website/js/jdshowhide.js" type="text/javascript"></script>
to the field.<div id="A3">Toggled content</div>
.<a href="#" id="jdtoggle-3">this link</a>
.This should probably be documented in the admin/design documentation, but not in the user documentation. I wouldn't support it for casual use. Its usability is also not sufficient for such cases.
See http://jongedemocraten.nl/scholing-vorming-1/trainers.html.
Is it possible to create this in a normal Mezzanine RichTextPage?