Issue #604💬 AnsweredOpened December 4, 2017by AH1N10 reactions

Trigger after removing component

Quick answerby ateshuseyin

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.

Read full answer below ↓

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)

ateshuseyinDecember 5, 2017

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.

AH1N1December 5, 2017

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

lock[bot]September 18, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.