grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Grapesjs-react

Open hemanthmc opened this issue 7 years ago • 3 comments

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' }, });

hemanthmc avatar Jan 02 '19 15:01 hemanthmc

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.

arthuralmeidap avatar Jan 03 '19 17:01 arthuralmeidap

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

artf avatar Jan 05 '19 00:01 artf

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.

lock[bot] avatar Jan 05 '20 01:01 lock[bot]