Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I create a new article in Joomla 1.5.22, and insert some Youtube video embed code (iframe etc) into the article, then press Apply in the HTML editor popup, I get a message like "article text cannot be empty:.

If I include some paragraph text with the Youtube code, the paragraph is saved and the Youtube code is removed.

Why does this occur? How do I prevent it?

share|improve this question
up vote 0 down vote accepted

Fixed by turning off code cleanup on save in the TinyMCE plugin manager.

share|improve this answer

An extremely useful Joomla! plug-in to mitigate code stripping from Joomla! editors can be found here:


To quote the developer:

"Sourcerer enables you to place PHP and any kind of HTML style code (including CSS and JavaScript) right into your content! Not only in your articles, but also in sections, categories, modules, components, META tags, etc.

You can now just place your original codes right into your WYSIWYG editor. The only thing you have to do is surround the code with the Sourcerer tags."

We are using this plug-in for all our websites whenever we need to insert java script code, etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.