Closed boardmain closed 11 months ago
Are you able to provide a reproducible demo? Tried your example and I don't see any freeze....
tried with the latest version 21.7 i try to put it online, but i just pasted html from a custom command, the source is pasted, but after it, the editor freeze ( i need to close the page )
for example
btnImp.onclick = () => {
editor.runCommand('core:canvas-clear')
// editor.Css.clear()
editor.setComponents(codeViewer.getContent().trim())
editor.Modal.close()
}
where the codeViewer.getContent().trim() get simple html from a modal
Please @boardmain provide a reproducible demo of your issue.
Closing this as right now it looks like you're doing something wrong locally as I'm not able to reproduce it.
GrapesJS version
What browser are you using?
Chrome 117.0
Reproducible demo link
localhost
Describe the bug
grapesjs": "^0.21.7",
editor.loadProjectData({ "assets": [], "styles": [], "pages": [{ "component": "
editor freeze
Code of Conduct