Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
koravski opened this issue Apr 26, 2022 · 1 comment
Closed

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

koravski opened this issue Apr 26, 2022 · 1 comment

Comments

@koravski
Copy link

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
Copy link
Owner

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

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

@Ju99ernaut Ju99ernaut changed the title Grapesjs adds "-2" to ids in the html with Firestore Grapesjs adds "-2" to ids in the html. Apr 26, 2022
@Ju99ernaut Ju99ernaut pinned this issue Apr 26, 2022
@Ju99ernaut Ju99ernaut unpinned this issue Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants