Joomla Jumpstart

  • Increase font size
  • Default font size
  • Decrease font size
Home Frequently Asked Questions (FAQs) Why is my JavaScript code deleted by the Joomla article editor?

Why is my JavaScript code deleted by the Joomla article editor?

E-mail Print PDF
User Rating: / 6
PoorBest 

If I insert a JavaScript or iframe reference to an Amazon.com book into the text of my article, when I click Save, the Amazon code is deleted. How can I get the article to save with the code?

 

The stripping of code is performed by the TinyMCE editor. If you are the Administrator of the site, you can go to the Plugin Manager, select the Editor - TinyMCE 2.0 plugin, and turn off the Code Cleanup option. However, this is not recommended because it opens the Joomla system up to potential hackers.

If you set the User Editor setting on your user account to Editor - No Editor, you can edit the HTML text directly and insert the code you need. Even better, you could setup a new Administrator account called something like textadmin and set the Editor - No Editor option on that account. On those occasions when you need to add special code, simply log out of the Joomla system and log back in using the text administrator account. When your edits are complete, change back to your standard account.

 
tonicarr Finally fixed #joomla JCE editor formatting http://bit.ly/bBGoyq Thanks!
by tonicarr. Link: TweetDeck
keshabraj JoomlaCK editor - The JoomlaCK Content Editor for Joomla!™ | JoomlaCK editor http://bit.ly/bp7aIv
by keshabraj. Link: clearwebstats.com
joomlabamboo @kyleledbetter just became co editor for the design workshop on the #Joomla Community Magazine http://bit.ly/cA1bhN awesome!
by joomlabamboo. Link: Tweetie for Mac
hayim I need a cool #joomla form editor.
by hayim. Link: web

Google AdSense