Issue #2408💬 AnsweredOpened November 13, 2019by kickbk2 reactions

Event listener for undo?

快速解答by artf1

We actually support undo/redo events

Read full answer below ↓

Question

I am listening for a component delete and move with removed() and sorter:drag:end. One last way (I hope) that I see the component move is by undo-ing a move. I need to listen to that event. Is there an event listener for undo?

Answers (3)

artfNovember 27, 2019

I think, currently, the only possible way to track those changes is by using component:update:components event which will pass the added/removed component

pouyamiralayiNovember 13, 2019

@kickbk to my knowledge there is no such event, but i guess you can catch it by listening to component:add event. cheers!

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.