API in Component not working after Deployment
It only works when i drop it on the editor and not when it loads as a deployed url If you load stuff from some kind of storage (eg. DB) in your "deployed url", be sure to have a correct remote setup
Read full answer below βQuestion
Block.js => Component.js => We are able to call the API and it works in Deployment when we are passing the whole html with script, body, style in Content attribute of Block Manager But when the API is called through the Component it's not working when the page loads in deployment. It only works when i drop it on the editor and not when it loads as a deployed url. Ex:
Answers (3)
It only works when i drop it on the editor and not when it loads as a deployed url
If you load stuff from some kind of storage (eg. DB) in your "deployed url", be sure to have a correct remote setup
@artf I understand your concern but in the deployed version API calls inside blockmanager content are working only the component api's are not getting called. So is it a problem with remote setup or something else ?
KIndly help me regarding the issue ... Thanks in Advance!
So is it a problem with remote setup or something else ?
Yeah, as you described it might be an incorrect storage setup (check also errors/warning in console)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3207
Form is not submitting
I am trying to create as custom block. But the form is not submitting when i use components inside content. I am able to get all the form d...
Issue #1584
Not getting the Script of Block from editor.getComponents()
Below is the Component that I'm adding. this.editor.BlockManager.add('dob-mmyy-pii', { id: 'dob-mmyy', label: DOB (MM, YYYY) (PII), categor...
Issue #1034
Insert element or block inside parent element
Good day, i have component, have block i have Trait on listen changes, how can I add "h1 " inside that block "'<div class="container" style...
Issue #2670
Doesn't appear HTML class name of a custom block on editor
I added my block like this below Then drag this block and drop to canvas, and show HTML code with export-template command. πOK, this is wh...
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
Vanilla GrapesJS vs GrapesJS With Plugins: What You Actually Get Out of the Box (2026)
New to GrapesJS? See exactly what the stock editor gives you, where it falls short, and which plugins close the gaps β a beginner-friendly 2026 comparison
Tutorial
Lighthouse for GrapesJS: Audit Accessibility and SEO Without Leaving the Editor
Live WCAG 2.1/2.2 accessibility auditor + SEO manager for GrapesJS. Every finding is bound to the exact component β click to select, then one-click fix.
Tutorial
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners β this post is for you.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.