grapesjs
grapesjs copied to clipboard
[QUESTION] Deleting the DomComponent within init()
I need to limit certain Dom Components to one, because it would cause issues when the page is published - but I can't seem to find a way to delete the component within its own init().
Is there a better way, as it doesn't seem healthy to delete someone before it's fully created.
Thanks
It would make sense to move such logic to a parent component