Ju99ernaut / grapesjs-template-manager

Template and page manager for grapesjs
MIT License
79 stars 35 forks source link

Grapesjs adds "-2" to ids in the html. #25

Closed koravski closed 2 years ago

koravski commented 2 years ago

Hi, I'm using the template manager with firestore. But when I add some background to a page and open another project and come back again the id gets "-2" at the ends. Each time it gets a new "-2".

Screenshot 2022-04-26 at 12 28 02

Is there any solution?

Thanks.

Ju99ernaut commented 2 years ago

You can check this issue for reference https://github.com/artf/grapesjs/issues/4196

editor.on('storage:start:load', () => {
     editor.Components.clear();
});