Replies: 1 comment 3 replies
-
Hi @mortimerz this is actually my bad for not tracking selectors by default. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm new to grapesjs and I'm currently working with Undo Manager. I'm trying to find a way on how to be able to undo/redo the action when adding new class selectors, does anyone have an idea or a working sample on how to add selector manager events (specifically adding class selectors) on the Undo Manager stack?
If my understanding is correct, the undoManager.add() method accepts a Model/Entity and not an action, so my assumption is I need to add the model of the SelectorManager to the UndoManager stack to be able to track it, but I'm not sure if that's the correct way.
TIA
Beta Was this translation helpful? Give feedback.
All reactions