2simplesolutions Posted March 31, 2014 Share Posted March 31, 2014 in prestashop 1.6 under the CMS page section i only want to input code see below but each time i go to save it. i get the same error message Content is invalid Any ideas, completely stuck on this not?? Thanks Gary Code is <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="http://form.jotformeu.com/form/40842307359355" frameborder="0" style="width:100%; height:1120px; border:none;" scrolling="no"></iframe> <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;[spam-filter];if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script> Link to comment Share on other sites More sharing options...
vekia Posted April 1, 2014 Share Posted April 1, 2014 it's because by default prestashop doesn't acept things like window.event and <scripts> check section related to validate.php class change in: prestahop 1.6 full featured editor Link to comment Share on other sites More sharing options...
Recommended Posts