Closed neon12345 closed 4 years ago
I don't follow your example, can you illustrate exact steps to reproduce, please?
Go to the newsletter demo at https://grapesjs.com/demo-newsletter-editor.html and use the "Import template" function with simple text like "hello" but no html (or combine it with html and text on the root level). Repeat this and the text on the root level will not be removed but add up on each import.
Thanks @neon12345, I was able to find the issue and it should be fixed in the next release
Text imported directly to the wrapper is not removed from the canvas with the component.
To verify one can import simple texts multiple times to the demo and watch how they combine instead of replacing the previous one.
Adding this seems to help:
Tested with the demo v0.16.18.