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

[Question]: Track custom storable with UndoManager #6171

Closed rhoenerSBS closed 1 week ago

rhoenerSBS commented 2 weeks ago

GrapesJS version

What browser are you using?

Chrome v129

Reproducible demo link

not applicable

Describe the bug

HI @artf,

I am currently implementing an editor with grapesjs in which it is possible to add chapters alongside the already existing pages. I implemented a ChapterStorage that implements the IStorableModule to store the chapters in the project data. My question is what is the best way to let the UndoManager track the changes made to the chapters? Is it necessary to extend the ItemManagerModule in some way?

Code of Conduct

artf commented 1 week ago

Hey @rhoenerSBS please avoid opening bug issues for questions.