The link wizard is a great tool for normal TYPO3 user to add link (internal, external, or email link). But what if a javascript function needs to be triggered manually by clicking a link? you can make an onClick event listener to achieve this. But in RTE you can also adds javascript:someFunction();
as href parameter.
To do this, switch to text mode in RTE by clicking the <> button and put your link manually. Following parameters need to be added manually:
1 |
data-htmlarea-external="1" rtekeep="1 |
so should the link looks like
1 |
<a href="javascript:someFunction();" data-htmlarea-external="1" rtekeep="1>Javascript Text</a> |