Menu

Build a Joomla Website Forum

Free Joomla support for all and priority support for members.
  1. James Rocks
  2. Priority Support
  3. Monday, December 04 2017, 08:41 AM
  4.  Subscribe via email
Hi,

I need to put iFrame based links on some of my article pages and I have been following this link on Joomla Forums in my attempts to do so:

How do I display an iframe in joomla 3.8.

Like the original poster of that thread I have changed "script,applet,iframe" to just "script,applet" (all the ones I can see) but my iFrame still get removed. .

When I try to add my iFrame code (I can paste it in to the code view of an article), it works but as soon as I save it, it disappears.

I am using the JCE editor ... I mention that because it appears to be relevant even though I don't understand why it should matter.

As a test iFrame I am using the following:


<iframe width="420" height="315"
src="https://www.youtube.com/watch?v=5O7VSW4TFBU">
</iframe>


On one of your discussion threads (Joomla Forums: using-iframe-embed-confusionhttps://www.buildajoomlawebsite.com/forum/using-iframe-embed-confusion) it suggests that the URL has to be "a proper" one but I don't really know what that means ... I am using code supplied by a major online retailer and I'm fairly confident it should work but even if it didn't, why is Joomla cleaning it up?

Thx

James
James Rocks Accepted Answer
0
Votes
Undo
Thx Richard,

I installed Ark editor and, yes, it does allow the addition of iFrame code but, no, that code doesn't subsequently display ... just a blank space at the end of my article. Maybe I need to set some permissionms somewhere to allow it to dsiplay?

What about code instead? The online retailer, BTW, is Amazon and I am attempting to put affiliate links on my site ... they helpfully provide iFrame scripts, text only (HTML), image only and widgets (not sure what either of the last two do). Maybe I should try one of them?

Thx

James
Comment
This is why despite the feature looking like it should work, I revert to my first suggestion. Not ideal, but it SHOULD work.
  1. Richard Pearce
  2. 1 year ago
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 1
Richard Pearce Accepted Answer
Moderator
0
Votes
Undo
This is a common issue with Iframes and other code. As it's possible to enable frontend editing for your users, the editor locks out certain tags that may be a security risk. IFrames are a potential risk because a malicious user could embed a script leading to malware installation. There are a couple of ways around this:

1) Temporarily change the editor in Administrator > Global Configuration > Default Editor > None. Then paste the code into your article, save and return to the setting and revert to JCE. This works but it's a hassle because if you open the article again, the code will get stripped on Save.

2) You can create profiles in JCE that allow certain user groups to enter certain tags. This is great in theory, but I always seem to struggle to get this to work and I haven't been bothered to sit down and work through it properly. You might have better luck than me: https://www.joomlacontenteditor.net/support/documentation/profiles

3) Consider a different editor such as https://arkextensions.com/products/ark-editor which I think has an IFRAME option on their toolbar.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Priority Support
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Free Joomla TutorialLearn Joomla for free with our 16 lesson, 2 hour course.

Get Started