Issue #2888šŸ’¬ AnsweredOpened July 10, 2020by acxvgalanov0 reactions

Extend 'undo' event

Quick answerby artf

You can use the UndoManager API like getStack to check last changes

Read full answer below ↓

Question

Hi, is there a way to find out the exact changes that happened to the document on the 'undo' (redo) event?

editor.on('undo redo', (...params) => {
// params is empty
});

It'd be a useful feature to know which elements have been affected (moved, changed, etc) by undo/redo.

Answers (1)

artf• July 14, 2020

You can use the UndoManager API like getStack to check last changes

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.