iframe being stripped

5 messages Options
Embed this post
Permalink
Jeanie () iframe being stripped
Reply Threaded More More options
Print post
Permalink
I am using kupu but have also tried fck.  I've read the how-tos for embedding flickr//youtube/myspace as well as html filtering.  I've done everything I've been told on IRC and/or read and yet iframe gets stripped when I save.  It's not anything inside the iframe because I even tried <iframe></iframe> with identical results.

I'm using latest firefox and running Plone 3.3.1.  It was suggested to try windowZ and although it works, it does not do what I need because I can't put anything else on the page.

Here's what I have done:

1.  kupu toolbar tab, checked Embed tab in External link drawer.  In retrospect, this was not necessary but has had no effect when unchecked
2.  safe_html has iframe added with a value of 1
3.  reloaded all transforms
4.  html settings:  iframe shows only up under custom and nowhere else
5.  shutdown and restarted (running in fg)
6.  cleared cache
7.  compared the setup to one of the sites I did running 3.2.2 where I am using and iframe and based on the above items, it's an identical setup.

So, what is going on?  Please do not respond with "works for me" as that is not helpful.  Don't mind RTFM if you give a link.

Jeanie

ajung () Re: iframe being stripped
Reply Threaded More More options
Print post
Permalink
Here is the works-for-me answer. I aded iframe to "custom tags" within the HTML filtering control panel and here we go: it works as expected.

-aj

Jeanie wrote:

So, what is going on?  Please do not respond with "works for me" as that is not helpful.  Don't mind RTFM if you give a link.

Jeanie
Jeanie () Re: [Plone-Users] iframe being stripped
Reply Threaded More More options
Print post
Permalink
I wish it was that simple.  I've got it there already. 

Email is such a poor medium - what I meant by no "works for me" answers is when some simply responds with "works for me" and nothing else.  Just a pet peeve of mine.  :-)

Thanks,

Jeanie

On Sat, Oct 24, 2009 at 1:21 AM, ajung [via Plone] <[hidden email]> wrote:
Here is the works-for-me answer. I aded iframe to "custom tags" within the HTML filtering control panel and here we go: it works as expected.

-aj

Jeanie wrote:

So, what is going on?  Please do not respond with "works for me" as that is not helpful.  Don't mind RTFM if you give a link.

Jeanie

Jeanie () Re: iframe being stripped
Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanie

Jeanie wrote:
I am using kupu but have also tried fck.  I've read the how-tos for embedding flickr//youtube/myspace as well as html filtering.  I've done everything I've been told on IRC and/or read and yet iframe gets stripped when I save.  It's not anything inside the iframe because I even tried <iframe></iframe> with identical results.

I'm using latest firefox and running Plone 3.3.1.  It was suggested to try windowZ and although it works, it does not do what I need because I can't put anything else on the page.

Here's what I have done:

1.  kupu toolbar tab, checked Embed tab in External link drawer.  In retrospect, this was not necessary but has had no effect when unchecked
2.  safe_html has iframe added with a value of 1
3.  reloaded all transforms
4.  html settings:  iframe shows only up under custom and nowhere else
5.  shutdown and restarted (running in fg)
6.  cleared cache
7.  compared the setup to one of the sites I did running 3.2.2 where I am using and iframe and based on the above items, it's an identical setup.

So, what is going on?  Please do not respond with "works for me" as that is not helpful.  Don't mind RTFM if you give a link.

Jeanie
jwolken () Re: iframe being stripped
Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanie
iframe is being stripped for me also.

Fresh install of Plone 3.3.1
    Zope (Zope 2.10.9-final, python 2.4.4, win32), etc.
Windows XP service pack 3

I removed embed and object from the nasty tags.
I removed iframe from the stripped tags.
I added embed and iframe to custom tags.

I think I can eliminate kupu from being involved since I set my editor to "Basic HTML textarea editor"

However - I do have a workaround.
I discovered that the object tag is not stripped (after removing it from nasty tags of course).
So I replaced iframe with object.  I had to remove or exchange some of the iframe attributes such as frameborder for border, or src for data.  For example:

< iframe align="center" src="http://www.flickr.com/-the-rest-of-your-url" frameborder="0" width="500" scrolling="no" height="500"> < /iframe>

to

< object data="http://www.flickr.com/-the-rest-of-your-url" height="500" width="500" border="0"> < /object>
One caveat, documentation on the object tag says that support varies across browsers - so your mileage may vary.

Jeff