TinyMCE, the default WYSIWYG editor in Joomla, is set to strip away "unsafe" HTML tags in order to protect you from certain exploits. This article shows you how to switch this off to be able to insert script tags or other typically prohibited elements such as iframe.

A safety feature of the TinyMCE WYSIWYG editor is the stripping off of certain html codes such as <script>. Sometimes though you need to be free to insert these codes at will. To switch the safety feature off you need to turn this off from the Plugin (or Mambot in old versions of Joomla) parameters:

Joomla 3

  • Extensions > Plugin Manager
  • Search and find TinyMCE
  • Change the Prohibited Elements field to define what you want to allow or not allow in terms of elements

Change TinyMCE prohibited elements to allow script html tags

Joomla 1.0

  • Plugins > Site Mambots
  • Click on TinyMCE Editor
  • Turn off the Code Cleanup parameter.

N.B. Switching off this protection exposes you to significant security risks. DO NOT switch this off, if you have enabled components which allow users to submit content via TinyMCE because they would be able to insert exploits into the content.

Featured On

Inc Magazine Logo  

Sitepoint logo  

CSS Tricks logo   

webdesignerdepot logo   WPMU DEV logo   

and many more!

Where are we hosted?

This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to MaxCDN!

Web Hosting MaxCDN - Speed up your website

Advertise on CollectiveRay.com

CollectiveRay (formerly known as DART Creations) is interested in developing partnerships with mutual benefit. If you like the stuff we publish and would like to develop a relationship, we'd be happy to hear from you. Go on - drop us a line - we'd love to hear from you :-)

New! DIVI 3.1 WordPress Template + PageBuilder

You'll surely create a perfect website with Divi 3.1!

Get an exclusive 20% OFF for CollectiveRay visitors until

Divi 3


The Outstanding HungryJPEG Bundles

AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF!  Get this bundle for just $29 - This month ONLY!

The Hungry JPEG Awesome font bundles


Disclosure: CollectiveRay is funded personally out of pure passion for helping people working with websites. We do however generate some income through recommendations of products. This means if you click on a link and purchase an item we link to, we will receive a small sum out of that sale.

Popular Content

Joomla extensions to take your website to the NEXT level

Is your Joomla website reaching its full potential? We install many of these extensions on almost ALL of our Joomla sites - why don't you check them out our list of Joomla Extensions and see whether you can take your site to the next level?

who are we?

CollectiveRay is run by David Attard - working in and around the web design niche for more than 12 years, we provide actionable tips for people who work with and on websites. We also run DronesBuy.net - a website for drone hobbyists.

David attard

Follow us on Social

Follow us on Facebook   Follow us on Google+   Subscribe to our RSS Feed   Follow us on Twitter