I recently had had enough of Joomla’s default content editor reformatting the html source in my static and content items. Joomla’s default editor is TinyMCE, and it’s a pretty capable option for editing. However, I’m often editing the html directly and I needed to make sure that when saved, the html source code was not being reformatted.

In order to prevent reformatting, follow these steps:

1. fire up your admin
2. select Menu => Mambots => Site Mambots
3. select TinyMCE WYSIWYG Editor
4. deselect Parameters => Code Cleanup

Now, I must say that there is a message along with this parameter which reads:

By default TinyMCE will clean your code of certain html elements, like script and center tags, for security and XHTML compliance. We recommend you do not deactivate this functionality.

Now, in my case, and since at least in my opinion the html source will be pretty clean, I’ve decided that that risk was worth taking.

So, all in all, i think that’s it. This is the way in which you keep Joomla’s default content editor TinyMCE, from reformatting your html code.