Issue #1953πŸ’¬ AnsweredOpened April 9, 2019by rrc8450 reactions

Render without iframe or get global styles and scritps

Quick answerby artf

Read full answer below ↓

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)

artfβ€’ April 11, 2019
var editor = grapesjs.init({
  ...
  canvas: {
    styles: ['...style1.css'],
	scripts: ['...script1.js'],
  },
});
rrc845β€’ April 11, 2019

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β€’ April 11, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.