Issue #5631๐Ÿ’ฌ AnsweredOpened Jan 19, 2024by Harshsne260 reactions

Undo manager add() not working as expected

Quick answerby artf

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

Read full answer below โ†“

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS 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 [X] I agree to follow this project's Code of Conduct

Answers (2)

artfโ€ข Jan 19, 2024

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

GJS Helperโ€ข May 17, 2026

The issue you're encountering with editor.UndoManager.add() not working as expected stems from a misunderstanding of the method's intended use and the type of argument it expects. The GrapesJS UndoManager is designed to track changes to the editor's overall state, not individual collections of mode...

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 โ†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.