Page 1 of 1

HTML Editing Issue

Posted: Mon Mar 11, 2013 4:31 pm
by RockRocks787
I'm trying to add some content to our homepage, including a Facebook and Twitter button, but when I paste the code into the website and click save, it seems to be altering the code for some reason. Am I doing something wrong?

Re: HTML Editing Issue

Posted: Mon Mar 11, 2013 4:50 pm
by FTMSupport
We use an Editor called TinyMCE to edit the home page (you can see more information here http://www.tinymce.com/" onclick="window.open(this.href);return false;). This editor validates HTML to make sure it is valid and will filter potentially harmful attributes and elements out of the HTML. If you can post what you are trying to put in your home page, we can see if there is something that we can change on TinyMCE to allow it. You can change anything confidential to "XXX" if you want to paste the HTML here, or you can email it to us at support@iscoresports.com.

Re: HTML Editing Issue

Posted: Mon Mar 11, 2013 5:38 pm
by RockRocks787
This is what I'm putting into the html editor:
<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="pages/xxx/###"></a>
<a class="addthis_button_twitter_follow" addthis:userid="xxx"></a>
<a class="addthis_button_youtube_follow" addthis:userid="xxx"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-513e62ec47cc8d19"></script>
<!-- AddThis Follow END -->

The html editor is changing the code to this:
<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style"><a class="addthis_button_facebook_follow"></a><a class="addthis_button_twitter_follow"></a><a class="addthis_button_youtube_follow"></a></div>
<script src="http://s7.addthis.com/js/300/addthis_wi ... ec47cc8d19" type="text/javascript"></script>
<!-- AddThis Follow END -->

It appears to be taking out the user ids to my facebook and twitter.

Re: HTML Editing Issue

Posted: Mon Mar 11, 2013 6:12 pm
by FTMSupport
Yeah, "addthis:userid" is a very non-standard attribute for the <a...> element We have modified our version of TinyMCE to now allow that attribute. Try again and let us know if it works.

Re: HTML Editing Issue

Posted: Mon Mar 11, 2013 7:23 pm
by RockRocks787
It's still rearranging things slightly. This is what I'm getting now:

<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style"><a class="addthis_button_facebook_follow" addthis="userid"></a><a class="addthis_button_twitter_follow" addthis="userid"></a><a class="addthis_button_youtube_follow" addthis="userid"></a></div>
<script src="http://s7.addthis.com/js/300/addthis_wi ... ec47cc8d19" type="text/javascript"></script>
<!-- AddThis Follow END -->

I'm going to send an email with exactly what I'm looking to put in.