<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Wysiwyg / TinyMCE stripping Javascript code</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Wysiwyg-TinyMCE-stripping-Javascript-code-70735</link>
        <description></description>
        <pubDate>Tue, 09 Jun 2026 07:45:56 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Wysiwyg-TinyMCE-stripping-Javascript-code-70735" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [garyhoffmann] Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201163#post2201163</link>
          <description><![CDATA[That did the trick!  Thanks tons.<br />Gary.<br />]]></description>
          <pubDate>Fri, 15 Jan 2010 19:55:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201163#post2201163</guid>
        </item>
                <item>
          <title>Re: [chris] Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201161#post2201161</link>
          <description><![CDATA[Awesome - I will give that a shot and see what happens - THANK YOU.<br /><br />Gary.<br />]]></description>
          <pubDate>Fri, 15 Jan 2010 19:30:22 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201161#post2201161</guid>
        </item>
                <item>
          <title>Re: [garyhoffmann] Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201159#post2201159</link>
          <description><![CDATA[Hi Gary,<br /><br />It looks like the wysiwyg editor (tinyMCE) strips out &lt;SCRIPT SRC&gt; attributes by default. If you're comfortable editing the PHP you can turn that feature off. Here's how:<br /><br />- Open cmsAdmin/lib/wysiwyg.php<br />- Make a backup copy of that file<br />- Search for 'entity_encoding'<br />- After that line, add this line (in red):<br /><br /><code>  entity_encoding : &quot;raw&quot;, // ... <br />  <span style="color:red">extended_valid_elements : &quot;script[src|type|language]&quot;,</span></code><br /><br />Then save that file and reload your editor and you should be able to enter your script tags in the HTML.<br /><br />Regarding the &lt;![CDATA[...]]&gt; wrapper, does that prevent your JavaScript code from running? I think that's simply done to make your code XHTML-compliant.<br /><br />Hope that helps, let me know if you have any further problems with that or need more assistance.<br />]]></description>
          <pubDate>Fri, 15 Jan 2010 19:17:53 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201159#post2201159</guid>
        </item>
                <item>
          <title>Re: [Dave] Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201144#post2201144</link>
          <description><![CDATA[This is just one example - I may need to have embedded javascript on many pages, different on each page, so having it in the viewer would not work.<br /><br />Do you know what's causing tinymce to change the javascript?  There must be a setting somewhere within it causing it.<br /><br />Otherwise I'll have to come up with some other &quot;trick&quot; to get around it.  I would just rather not have to play all these coding tricks.<br />]]></description>
          <pubDate>Fri, 15 Jan 2010 06:45:05 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201144#post2201144</guid>
        </item>
                <item>
          <title>Re: [garyhoffmann] Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201140#post2201140</link>
          <description><![CDATA[Hi Gary,<br /><br />It's better not to do it that way.  What pages do you need it on?  Is it possible to put it in the viewer file?<br /><br />Or create a checkbox called show-topbiz and then have this in the viewer:<br /><br />&lt;?php if ($record['show-topbiz']): ?&gt;<br />&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot; src=&quot;http://code.javahd.com/js/topbiz.js&quot; type=&quot;text/JavaScript&quot;&gt;&lt;/SCRIPT&gt; <br />&lt;?php endif ?&gt;<br /><br />Would that work for you?<br />]]></description>
          <pubDate>Fri, 15 Jan 2010 04:08:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201140#post2201140</guid>
        </item>
                <item>
          <title>Wysiwyg / TinyMCE stripping Javascript code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201107#post2201107</link>
          <description><![CDATA[Hi,<br /><br />I'm using the HTML button from within TinyMCE and trying to insert the following:<br /><br />&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot; src=&quot;http://code.javahd.com/js/topbiz.js&quot; type=&quot;text/JavaScript&quot;&gt;&lt;/SCRIPT&gt;  <br /><br />It's stripping out the &quot;src=...&quot; parameter.<br /><br />I also tried to insert this:<br /><br />&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;<br />v_theflv='topbiz.flv';<br />v_flvbase='hosted';<br />v_alignvideo='bottomleft';<br />&lt;/SCRIPT&gt;<br /><br />ended up getting this:<br /><br />&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[<br />v_theflv='topbiz.flv';<br />v_flvbase='hosted';<br />v_alignvideo='bottomleft';<br />// ]]&gt;&lt;/script&gt;<br /><br />Any ideas what I can do to insert javascript into a page's content section?<br /><br />Thanks in advance,<br />Gary<br />]]></description>
          <pubDate>Thu, 14 Jan 2010 14:08:16 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201107#post2201107</guid>
        </item>
              </channel>
    </rss>
  