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)
var editor = grapesjs.init({
...
canvas: {
styles: ['...style1.css'],
scripts: ['...script1.js'],
},
});
Already tried with it, and dont work. Js from prestashop not work inside the iframe, and because that i need render out of iframe.
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.
Issue #1902
[QUESTIONS] Disable/change build-in components behavior
Hey, Trying to get GrapesJs work for a project I'm currently working on. But is there a way to disable the built-in components that convert...
Issue #392
Define selected class.
Hello @artf , Is there a way to automatically select the class that is created on elements with custom styles. I'm currently trying to dyna...
Issue #574
Using Grapes with Zeronet.
Is there a way to use grapesjs with zeronet? https://zeronet.io/ You can create sites on zeronet but to add headers, banners and other thin...
Issue #795
editor.getSelected() in run:open-assets
Hello! I want without having to create a new block button, and stopping the event associated to the image that this run:open-assets get the...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.