trigger after removing component
Question
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?
Answers (3)
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.
That's exactly what I've been looking for :) Thank you! I wrote 'after' but I should have written 'when' ;)
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1374
Default Component Properties
Is there any way I can change the default properties of components? I want almost everything to be copyable: false, resizable: false, dragg...
Issue #1960
[QUESTION] Dynamic class generation with a template
Hi there ! I am wondering if there is a way to force the dynamic class generation (of the form cXXXXX which happens when I drag'n'drop a co...
Issue #1766
Is There any way to integrate ImageEditor in GrapesJs
After Dropping the image inside the editor is there any plugin for GrapesJs to edit that image like Cropping , adding text on it .....
Issue #1227
Re-render view in editor's canvas whenever Trait value changes
Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should li...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.