5

I'm trying to put an iFrame (from Google Maps) in an article but it the code just appears as text. I've had a look at the HTML source and its not in any

tags or anything. Any help please?

3 Answers 3

2

Go to:

Extensions >> Plugin Manager >> TinyMCE >> Prohibited Elements

The remove iframe from the list.

0
3

My preferred way of doing this is to create a module for your code (using for example Custom HTML Advanced or the built-in Iframe Wrapper module. Publish the module to a custom position (like GoogleMap). Then load the module into any article using this code:

{loadposition GoogleMap}

Joomla will take care of the rest, and insert the code into your article.

3

Alternatively you can change your default editor to "none". This will give you a raw HTML format for every text you type, so tags will stay where you want them.

Users -> *your user name* -> Basic settings -> Editor

But if you are not that experienced with pure HTML, stay with the solution from Lodder.

3
  • 1
    I'm very experienced with HTML. Main reason I use Joomla is for Virtuemart as my company make websites for takeaways.
    – Jim Leeder
    Feb 18, 2015 at 14:24
  • Then I suppose trying to change the editor as suggested. This prevents a lot of issues with WYSIWYG editors.
    – samtun
    Feb 18, 2015 at 15:55
  • I don't suppose you could try answering another of my questions partly concerning an editor? - joomla.stackexchange.com/questions/7653/…
    – Jim Leeder
    Feb 18, 2015 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.