GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.36k stars 4.05k forks source link

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

Closed rrc845 closed 5 years ago

rrc845 commented 5 years ago

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.

artf commented 5 years ago
var editor = grapesjs.init({
  ...
  canvas: {
    styles: ['...style1.css'],
    scripts: ['...script1.js'],
  },
});
rrc845 commented 5 years ago

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

artf commented 5 years ago

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

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.