Event listener for undo?
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)
We actually support undo/redo events
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
@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.
Issue #2723
Event listening for loaded asset
I need to find a way to expose the event listener when an image has been selected in the Asset Manager, is there a way to do it? I can only...
Issue #1541
Remove Last changes From Undo Manager Stack
@artf Hello Can we remove the last event (changes) from undomanger. I need remove last event (change) from undo manger stack. I can get und...
Issue #2404
Question: how to observe children changes in component
Is there an easy way to subscribe/listen to changes in the components/children of my custom component type? Perhaps an event I can subscrib...
Issue #2433
[Bug] Changing layerable in an an event at runtime doesn't immediately update
When I change the layerable option of a custom component in an event, it still shows up in the layers until you drag it once. Is there some...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Tutorial
GrapesJS Inline RTE Plugins Update: CKEditor 5 v0.1.4 and Froala Inline Text Editor
CKEditor 5 Inline for GrapesJS v0.1.4 fixes Studio SDK toolbar clipping, iframe injection and link balloon bugs. Compare with Froala Inline — both $69.
Tutorial
Embed GrapesJS in Your SaaS: A Weekend Guide
Embed GrapesJS in your SaaS and ship a white-label page builder over a weekend. Honest tradeoffs, real code, and the plugins that close the UX gap.
Tutorial
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins — TinyMCE Inline Text Editor and Placeholder.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.