Ju99ernaut / grapesjs-template-manager

Template and page manager for grapesjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

koravski opened this issue · comments

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.

You can check this issue for reference GrapesJS/grapesjs#4196

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