how to load styles in editor ?
Question
hi @artf , I am using grapesjs editor with wordpress. Is there any way to load the wordpress styles in that grapesjs editor ? because am loading wocommerce products in the grapesjs editor and not getting the styles of that wordpress used in the editor for the products. please suggest some way to do it ?
Answers (2)
grapesjs.init({
container: '#gjs',
plugins: [],
canvas: {
scripts: [
],
styles: [
'http://example.com/wp-content/style.css'
]
}
})
Is this what you were looking for?
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1265
how to use php functions inside of editor iframe ???
Hi @artf, currently i am working on php,wordpress and grapesjs.What I wanted here is.., how can I add the php functions inside the iframe o...
Issue #1662
How we can reinitialise editor
Hi @artf, Hope you are doing good. How we can reinitialise the editor with json data. We want to reinitialise editor with some of the previ...
Issue #837
[QUESTION] Javascript Deletes
Whenever I import, using import plugin, javascript part of the code is deleted. Is there any way to preserve it? I want to used the exporte...
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.