grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[QUESTION] Deleting the DomComponent within init()

Open adamwpe opened this issue 7 years ago • 1 comments

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

adamwpe avatar Jul 01 '19 19:07 adamwpe

It would make sense to move such logic to a parent component

artf avatar Jul 11 '19 22:07 artf