Closed syncubecommerce closed 6 years ago
I am having the a simliar issue. Except I am using VueJs. When I leave the page and comeback to it the editor runs the plugin again. This causes the editor to be unusable until I resize using the device preview but if I drag a block into the canvas it drops two times...one on where I dropped and the other down at the bottom.
editor.destroy()
method is available from https://github.com/artf/grapesjs/releases/tag/v0.14.20
@artf yup that did the job perfectly ty!
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.
Hello,
I'm trying to add a grapesjs editor to my React SPA. I'm initializing editor this way:
config variable has the following configuration:
The first time everything is working fine. When I navigate to another page of my single page app and get back - plugins are not loaded.
I tried to delete an instance of editor in componentWillUnmount() but it didn't help.
I tried to found solutions in issues but had no luck. Maybe I need somehow destroy editor in componentWillUnmount()?
Appreciate for your help.