Update Content Before Load
@gentritabazi01 here you can use component.components(data.html) this will replace the content with a new one returned from the server
Read full answer below ↓Question
I have build one CMS in Laravel and i used GrapesJS to make Page Builder its perfect, i just created one component for "Posts" so users can select category where wants to select posts also limit. After select or change limit or category a request is made to a request to backend to show me data in JSON and i append to GrapesJS. I save all page content to database via command of GrapesJS: `editor.store().html` Now how i can make to load fresh posts from Database from that category (Pic 1 & 2) that selected in builder. Because GrapesJS show me only html code. [Component Picture 1][1] [Component...
Answers (2)
@gentritabazi01
here
if(data.status == 'success') {
component.set('content', data.html);
}
you can use component.components(data.html) this will replace the content with a new one returned from the server
@gentritabazi01 as far as i know, relying on editor storage for your custom data layer logic is not a good idea.I save all page content to database via command of GrapesJS: editor.store().html you can use: above code can be inside init hook of either your model or your view definition. that way you...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2817
I want to just preview the page that is build/make by grapseJS
Hello Sir, We have used grapesJS for page builder. We have created a page by grapesJS & store on a remote server. Now we want to just show/...
Issue #3141
Loading dynamic content
I really apologise if this has been covered previously. I have searched the issues and also read the documentation quite extensively and ma...
Issue #1121
<Tbody> inside <Table>
Hi @artf , I created a new component with tagName = 'table'. When selected and one option of its toolbar I also created is clicked, a new m...
Issue #6685
Custom component styles are not applied after deletion and re-addition
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v143.0.7499.193 Reproducible demo l...
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.
Tutorial
How We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
Tutorial
Introducing GJS.Market Services: ship your GrapesJS editor without the integration risk
It's everything that usually eats weeks of engineering time, scoped and priced up front. No open-ended hourly surprises.
Tutorial
GrapesJS custom components guide (2026)
Define custom GrapesJS components with DomComponents.addType: detection with isComponent, a model with traits and defaults, and a view for canvas behavior.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.