I try do add a Iframe in a site using the Emogrifier filter.
The Iframe is not displayed when viewing the page and there is no any information about iframes in the page code.
When the page is edited, the follow code is present:
<iframe align="left" frameborder="0" height="450" longdesc="Iframe Test Page" scrolling="yes" src="http://www.mysite.com/page" width="450"></iframe>
I did a test by disabling some filters and I found that when the Emogrifier filter is disabled , the iframe is displayed correctly.
I tried to reverse and change the order of the filters used on the site, but the iframe is displayed only when the Emogrifier is disabled.
NOTE: This issue initially was reported as a problem in the CKEditor module, as related in this issue.
Comments
Comment #1
pillarsdotnet commentedNoted. i'm not sure why you would want to use an iframe in an email message, though.
Comment #2
astutonetMy friend, Iframes aren't used in e-mails, it is altogether reasonable, you can understand it?
What you may not have understood is that the filter Emogrifier interferes with the functioning of some aspects of Drupal, including the use of Iframes in nodes.
It is known that the filter Emogrifier should only convert stylesheets to inline style rules for better compatibility with email and mobile device viewers.
However, tests proved that when the filter is enabled, Drupal can not work with IFrames.
You can check what is happening or needs more info?
Comment #3
cota commentedI have had the same problem where I wanted a widget that uses an iframe to show up in the Postscript Bottom region. Enabling Emogrifier would not allow the iframe to display but the email notifications for the site were nice and clean. Disabling Emogrifier displayed the widget in the iframe but the emails contained several lines of xmlns code at the top.
I am using the HTML Mail module and that is the only reason I am using the Emogrifierf module and libraries.
My work-around solution was to create a new Input Text type where the Emogrifier filter was not enabled. When I edited the block that contained the widget/iframe, I chose my no_emogrifier Input Format instead of my usual Full HTML format. The web pages now display the iframe widget and the emails are beautiful on both web mail and iPhone email.
Hope this helps you and anyone else.