Grapesjs-react
how to load an html file while starting the GrapesJs-react- editor
I tried in this way but it is not working,
editor.StorageManager.add('local', { load() { 'template.html' }, });
You could use the editor.setComponents to load the HTML. Here you can see an example: https://github.com/artf/grapesjs/wiki/API-Editor#setcomponents
You will need to get the content from the HTML file first.
To be honest @hemanthmc , by lookings this:
load() {
'template.html'
},
I'm not sure you even know what you're doing...
Start from the beginning: https://grapesjs.com/docs/getting-started.html
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.