Closed henry930 closed 3 years ago
Hi @henry930,
I fixed this problem by developing an reloader.
let editorConfig = {
// your configs
}
let editor = false;
function editorLoad(){
$(editorConfig.container).empty(); // with JQuery
editor = grapesjs.init(editorConfig);
editor.load();
}
editorLoad();
If you want to update your config,
// for example
/*
old
editorConfig.height = '100px'
*/
editorConfig.height = '150px';
editorLoad();
Your editor will reload. Your html, css... will remain.
Can javascript under the grapesjs panel load?