is there any way to reload grapes editor explicitly?
Question
I want to reload grapes editor to get specific changes, is there any method to reload grapes editor?
Answers (3)
specific changes
what kind of changes?
like I pass codes explicitly to grapes. and I got my HTML and CSS while clicking on view code button on the header of grapes editor. but it wasn't shown to the editor. Once I refresh the page or reopen the same page I got the structure in the editor as well.
@HarshOB I didn't get exactly what do you mean with I pass codes explicitly to grapes but if you use correctly the Editor API you should see the canvas update, eg.
editor.setComponents('<div class="cls">New component</div><style>...</style>');
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1887
Get JSON of specific gjs-data-type
I want to export JSON of only a specific gjs-data-type="img" I'm trying this but it doesn't give any result:
Issue #1227
Re-render view in editor's canvas whenever Trait value changes
Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should li...
Issue #1608
[Question] Customize CSS class name
GrapesJs editor creates a unique class for element and adds CSS rules to it. For example, Now, is there any way to customize this behaviour...
Issue #599
Set Device Height along with Device Width
Hi I want to add new devices with both width and height, Is there any way I can do this? An other issue is that when I give width of device...
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.