Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

2 Answers 2

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:

http://www.nonumber.nl/extensions/sourcerer

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

 
discard

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.