grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

trigger after removing component

Open AH1N1 opened this issue 9 years ago • 3 comments

Guys I need to trigger some action after removing editor's components. Is there any way to do so? Or have I to write my own trigger?

AH1N1 avatar Dec 04 '17 13:12 AH1N1

There is not an event related with your requirement. You can easily override tlb-deletecommand. I created a sandbox for you https://codesandbox.io/s/k2yoxjjr95. If you want to handle programatically removed components, I don't know how to do it. You are welcome to create a new sandbox for it.

ateshuseyin avatar Dec 05 '17 08:12 ateshuseyin

That's exactly what I've been looking for :) Thank you! I wrote 'after' but I should have written 'when' ;)

AH1N1 avatar Dec 05 '17 09:12 AH1N1

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 18 '19 05:09 lock[bot]