GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.36k stars 4.05k forks source link

BUG: Undo manager add() not working as expected #5631

Closed Harshsne26 closed 8 months ago

Harshsne26 commented 8 months ago

GrapesJS version

What browser are you using?

Chrome v91

Reproducible demo link

--

Describe the bug

How to reproduce the bug? I wanted to add an change to the undomanager stack . var components = editor.Components; editor.UndoManager.add(components.getComponents().models);

What is the expected behavior? The change added using um.add() should be added ..and when i press undo and redo this change should also be displayed.

What is the current behavior? The change is not added.

Code of Conduct

artf commented 8 months ago

@Harshsne26 you need to provide a reproducible demo for a bug