This is an endless challenge to the Joomla administrator – how do I insert code into an article? There are many add-on editors that can be used and there are many “specific” plugins you can install for each particular instance, but I’ve found this works regardless of your editor. Furthermore, unlike the “no editor” option, even if someone else goes in to edit that article, the code doesn’t change.
This method involves two Joomla extensions:
Install both of these through the Joomla interface. You’ll need to go to the “Plugins” menu and enable the Modules Anywhere plugin (you can also see the different syntax options). Then, navigate to the module manager and select the new “Easy Script” module. Rename it to something appropriate, such as Google Map. You’ll also need to enable the module (publish). For position, select “none”. Then, paste your script in the field on the right. Click on “Save”. After you return to the Module Manager screen, note the id number of the module you just edited (located on the right).
Now, navigate to the Article Manager and edit the article that you want the map (or script) inserted into. At the point you want the script inserted, type the following:
Replacing “34” with the id number of your module.
If you like, you can align that text (center, for example) and that will apply to the map or script.
Click on “Save”. Now, when you view the article, your script will remain there. And, if you or someone else wants to edit the article, you can without fear of messing up the script. You can also use it multiple times, if you want it shown in multiple articles.

