Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #354284

    Hi,

    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 ?

    thanks.

    #354517

    Hi Oli!

    Try using the codeblock element instead.

    Regards,
    Elliott

    #356664

    Hi Elliott,

    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 ?

    Thanks
    Oli

    #357095

    Hey!

    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.

    Regards,
    Elliott

    • This reply was modified 3 years ago by  Elliott.
    #357458

    Hi,

    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.

    Oli

    #357996

    Hey!

    Unfortunately it would be kind of difficult to change that. What I would do is if you need to use the WYSIWYG then drag a text block over and add all of your content and then copy it and paste it into a codeblock element.

    Best regards,
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.