Issue #1541πŸ’¬ AnsweredOpened October 25, 2018by YashPrince0 reactions

Remove Last changes From Undo Manager Stack

Quick answerby artf

The only way to move the pointer is to use undo/redo methods, so if you need to remove X steps you have to execute undo X times

Read full answer below ↓

Question

@artf Hello Can we remove the last event (changes) from undomanger. I need remove last event (change) from undo manger stack. I can get undo manager stack but could not modify it. Is there any way to set pointer of stack one or two step back or remove the last events from the stacks. There is a way like um.stop() and um.start() but I can not use that as I have no Idea that from where that event are added in stack of UndoManager.

Any help would be Appreciated, thanks in advance!

Answers (2)

artfβ€’ November 2, 2018

The only way to move the pointer is to use undo/redo methods, so if you need to remove X steps you have to execute undo X times

lock[bot]β€’ November 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.