Zen Cart Logo
Forums / General Questions / Iframe in product description hides admin update button

Iframe in product description hides admin update button

Views: 754

Results 1 to 4 of 4
26 Jul 2011, 5:44 AM
#1
nadiausa avatar

nadiausa

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
82
Plugin Contributions:
0

Iframe in product description hides admin update button

Hi,

Does anyone know the fix to:

When I add an iframe to my product description box in the admin I am able to hit preview but unable to hit the update button because upon the description preview whith the iframe somehow hides the update button.

I even added

 ?wmode=transparent

to the end of the src url to no avail.

Hmmm

Any thoughts?

Nadia

26 Jul 2011, 8:20 AM
#2
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Iframe in product description hides admin update button

I had exactly the same problem
HTMLeditor removes the closing tag of the iframe before preview and I think iframe's don't work without closing tags and caused the display problem

edit: editors/htmlarea/htmlarea.js

find

HTMLArea.needsClosingTag = function(el) {
var closingTags = " head script style div span tr td tbody table em strong font a title ";
return (closingTags.indexOf(" " + el.tagName.toLowerCase() + " ") != -1);
};

(line 3893)

add iframe
e.g.:

HTMLArea.needsClosingTag = function(el) {
var closingTags = " iframe head script style div span tr td tbody table em strong font a title ";
return (closingTags.indexOf(" " + el.tagName.toLowerCase() + " ") != -1);
};
26 Jul 2011, 8:36 AM
#3
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Iframe in product description hides admin update button

I had this issue to I had to manually fix the description at a database level.

26 Jul 2011, 12:42 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Iframe in product description hides admin update button