Yoong Yim Jing
Yoong Yim Jing

Reputation: 11

How to add javascript to a joomla 1.5 article using TinyMCE editor?

I'm having trouble trying to get JavaScript to show up on a Joomla! article using the TinyMCE editor. I've set all the settings I should based on Google searches and it's still not showing. The JavaScript code is commented out as shown in screenshots below.

Click here to view TinyMCE settings

Click here to view Chrome Developer Tool Screenshot

Any help is greatly appreciated. TQ!

Upvotes: 0

Views: 318

Answers (1)

Michael Yaeger
Michael Yaeger

Reputation: 824

Though many WYSIWYG editors claim <script> support, I would suggest using the "None" editor when adding the JavaScript code to your posts. I use Switch Editor to quickly change editors. After installing and activating the package:

  1. Switch to "None" editor
  2. Open the article
  3. Add the embed code
  4. Save the article
  5. Switch back to your favorite WYSIWYG editor to edit other articles

This will give you the least problems. Unfortunately, the package is only available for Joomla! 2.5+. However, there is an alternative here: http://www.joomler.net/download/81-joomla15-plugin/959-editor-switcher-for-joomla15-released.html


On a side note, you should upgrade your site away from Joomla! 1.5 ASAP!

Upvotes: 1

Related Questions