Jump to content

Issue With Iframe Is Prestashop 1.6.1.4


Recommended Posts

I have completed all of the usual tasks to ensure iframe support.  Here is the list:

 

1.)  Turned iframe support on and html purifier off in general settings

2.)  Defined various mouse js events in /classes/validate.php

3.)  Commented out appropriate lines of isCleanHtml function in /classes/validate.php

If the page is inspected with Firebug, I can see the iframe code has been written, but there is no data inside of the <body> tag.  I can edit the html in Firebug to include text inside of the <body> tag and it will appear on the page.  That is anecdotal, but it at least shows me the browser if functioning as it should.

For some reason, Prestashop is not showing what is inside of an iFrame.  Any idea why? 

 

Also, I would like to know where the actual file is that holds Prestashop general settings.  I need to make sure the backoffice is actually turning iframes on.  I've searched but can't them anywhere.

 

post-312610-0-78124800-1456085823_thumb.png

Link to comment
Share on other sites

Solved:

 

mdekker, thank you for chiming in.  I determined the issue.

I didn't realize that iframes require data from an outside source (src="https://www.foo.com").  I was attempting to write raw text inside of the iframe tags.  

 

The goal was to create a scrolling text area by simply using tinymce inside of a cms page.  Apparently the only way to create a scrolling text area is to write an html file and then embed it.  I was really trying to avoid that.

Link to comment
Share on other sites

The solution is to use css overflow property.  I knew the iframes are dated and phasing out, but I couldn't find the appropriate css property.  Here it is if anyone else runs into this issue.
 

div.scroll {
    width: 100px;
    height: 100px;
    overflow: scroll;
}
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...