Issue 380: iframes in content of modal improperly hidden
Status:  Accepted
Owner: ----
Reported by kpat...@gmail.com, Nov 14, 2009
The following line of code is causing a problem:

$('iframe', modal.content).hide(); // Fix  issue 359 

Because it selects for ALL iframes in the content, it will improperly hide
any iframes that were part of the original content (from a hidden div on
the page) and not just those created by nyroModal.  

This is mainly a problem for me because of the use of a WYSIWYG editor that
uses iFrames for editing purposes. When closing the modal, the editor
iframe is hidden and next time the modal is opened, it isn't there.

As a temporary fix for myself, I changed this line to be:

$('#nyroModalIframe', modal.content).hide(); // Fix  issue 359 

But I think that this is not a complete fix because you may have iframes
with other names that I'm not aware of.
Nov 16, 2009
Project Member #1 nyro...@gmail.com
In the next release, there will be a new settings named autoHideIframe to control if
the line you mentioned should be executed or not.

Would it help you regarding what you said?
Status: Accepted
Nov 16, 2009
#2 kpat...@gmail.com
I'm not sure if that will do it or not -- I think you need to have it hide YOUR
Iframes, just not any others. Would be better to filter it either based on a class
you put on  yours or using a begins with selector to match the 'nyroModal' prefix.
Apr 16, 2010
Project Member #3 nyro...@gmail.com
Ok, the line will be replaced with $('iframe.nyroModalIframe', modal.content).hide();