Issue #1953Opened April 9, 2019by rrc8450 reactions

[QUESTIONS] render without iframe or get global styles and scritps

Question

Hello, I am trying to integrate grapesjs in prestashop, but due to the iframe, I do not get the global css or js.

I tried to enter the css and js manually, but the prestashop js gives errors when I add it.

Is there a way to not use the iframe? Or that has global access to styles and js?

a greeting.

Answers (3)

artfApril 11, 20190 reactions
var editor = grapesjs.init({
  ...
  canvas: {
    styles: ['...style1.css'],
	scripts: ['...script1.js'],
  },
});
rrc845April 11, 20190 reactions

Already tried with it, and dont work. Js from prestashop not work inside the iframe, and because that i need render out of iframe.

artfApril 11, 20190 reactions

Js from prestashop not work inside the iframe, and because that i need render out of iframe.

Open the console and check for errors, probably you're passing a wrong path or you need other js from prestashop

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.