How to use Google Adsense Code in the Tinymce html editor
Design and Skin Customization
Thinking out loud
Ok Ive changed
extended_valid_elements: "script[type|defer|src|language]",
extended_valid_elements : "script[src|type|language]",
If I can get this figured out-could the template be edited like this so that only ADMINS can add scripts?
{if jrUser_is_admin()}extended_valid_elements : "script[src|type|language]",{/if}
Seems like if this is possible it would be very useful for the websites?
Thanks
Using this adsense code and pasting into the editor
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-4020801146046639"
data-ad-slot="9853926026"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display: block; text-align: center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-4020801146046639" data-ad-slot="9853926026"></ins>
<script>// <![CDATA[
(adsbygoogle = window.adsbygoogle || []).push({});
// ]]></script>
Sorry for so much aimless rambling on this-its just usually when i flounder around like this in public someone will come to the rescue
updated by @derrickhand300: 02/07/18 10:19:19AM