The easy construction to generate some clickable elements to call a javascript routine by something like
(% onclick="toggleElement('one')" style="color:blue" %)toogle(%%)
does not work in XWiki 14.10.2 any more as the rendered HTML is
<span data-xwiki-translated-attribute-onclick="toggleElement('one')" style="color:blue">toogle</span>
The generated element is not clickable!
The workaround by
{{html clean="false"}}
<span onclick="toggleElement('one')" style="color:blue" >toogle</span>
{{/html}}
generates the old XWiki-13 HTML Code:
<span onclick="toggleElement('one')" style="color:blue">toogle</span>
Is there an easy way to get the “onclick” attribute into the rendered code back?
Manually generating HTML-Code is sometimes complex, e.g clickable table elements of a wiki table.
Thanks for help
Norbert