CE Stripping out OnClick in <a> tag.

  •  11-24-2009, 10:55 AM

    CE Stripping out OnClick in <a> tag.

    We use CE as the editor for our CMS, so we often add and change html with it.  However, when I try to add an OnClick event to an <a> tag.  CE strips it out before I can save it.  (This particular OnClick event is necessary for Google Analytics tracking.)
     
    In CE, I click the HTML tab and change this:
     
    <a href="http://president.hftp.org">More</a>   
     
    to this:
     
    <a onClick="BLOCKED SCRIPT pageTracker._trackPageview('/outgoing/presidentsblog')" href="http://president.hftp.org">More</a>

    However, when I then click the Normal tab and then the HTML tab again, it becomes this again:

    <a href="http://president.hftp.org">More</a>   

    As a matter of fact, I just did it right here in this edit session and it stripped it out.  See below:

     
     
    (You site is adding the "BLOCKED SCRIPT" here. )
View Complete Thread