I’ve tried to add an onclick HTML attribute to a a tag (link) in a text block (in the advanced editor) and it’s always deleted when I save the page.
How can I keep it ?
I’ve tried and it works in a code block element but I told editors to add HTML code ( onclick=”_gaq.push([‘_trackEvent’, ‘Downloads’, ‘PDF’, ‘201411_PortraitIngenieur2030VF.pdf’]);”) in a link tag but I’m not sure we have skills to create a entire HTML code block.
Is there a way to authorize onclick attribute in text block ?
I’m sorry but I’m not sure I understand. It would be easiest to use the codeblock element if you need to use HTML along with your other text. Send us a link so we can get a better idea of what your trying to do.
yes : http://www.mines-telecom.fr/formation/debouches-et-metiers/observatoire-des-metiers/ on the link [Télécharger le document “Portrait de l’ingénieur 2030”]
But it’s not a good example. If I have a big text block with several links, it will be hard to manage it only with HTML code. It’s easier to use the wysiwyg editor and, if needed adding the onclick attribute.
You must be logged in to reply to this topic.