Andy Miller wrote:
NOTE: Ok, I feel like a real idiot for not finding this out sooner, but that's partly because I never use a WYSIWYG and therefore have not really played with it much.
We traditionally tell people to turn OFF their WYSIWYG editor when editing custom scripts, or typography or whatever because these editors strip out extra css classes, javascript etc. Well, I just discovered that with TinyMCE at least you can disable this 'feature'. Just go to Mambots -> Site Mambots in your joomla administrator, then click on the "TinyMCE WYSIWYG Editor" link. In the properties, set the "Code Cleanup" radio button to "Off".
Voila, you can now just switch to the HTML mode in the editor, add any classes you need, and they wont be stripped out like they usually are.
Joomla 1.5:
Go to Extensions > Plugin Manager and select TinyMCE2.0
On the right for the "Code Clean-up on Save" select "Never"
See image below
thanks fot the tip, I am using joomla 1.5 and I can not get any pics to rotator anyway:
- I have turned off wisiwig editor and it does not work
- I turned onTinyMCE2.0 editor, set up the configuration you mentioned and it does not work as well
this code <!--IMAGE images/stories/lego/rotator-3.jpg IMAGE--> is always removed after saving
do you have any tips? thanks in advance..