CKEditor doesn't show JavaScript I have Drupal 7 with CKEditor 3.6.2.7275 under Wysiwyg module. In configs of Wysiwyg I unchecked all the checkboxes for "Cleanup and output" category. Plus unchecked "Limit allowed HTML tags" for Full HTML text format.

When I try to edit the page, containing javascript inside, the &lt;script type=&quot;text/javascript&quot;&gt; is inside the &lt;textarea&gt; for content editing. But it's not shown by CKEditor when I click source button. So it's undoubtedly CKEditor filtering.

What should I do to make CKEditor show javascript?
Drupal, like most Content Management Systems, has security systems in place to filter most javascript during submission so site members can’t do ugly things via scripting. In most cases, that’s a good thing. When you’re scratching your head trying to figure out a way around it, not so much.

You can hard-code a script into the template, if you need it on all the pages and it works. But just adding a a single, inline javascript into a Drupal node is not as easy as it seems.

There may well be a prettier way to do this, but here is a quick way out in case you need it: 

First,  put the script on your server, someplace it’s easy to find. I usually have a  “scripts” folder in my sites/all folder.

Second, when do your post, set your input filter to PHP

Third, do a php include where you’d like to place the script. Something like this:

&lt;?php include('sites/all/scripts/my_javascript.js'); ?&gt;


And there you go. Inline javascript. I guess in the most common scenarios Drupal is used for, having &lt;script&gt; available without filtering would be very foolish security wise. Unfiltered js in a webform makes for a very insecure setup.