FEAT: Extend 'undo' event
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)
You can use the UndoManager API like getStack to check last changes
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2654
How to get the changed property from StyleManager
Hi, Is there a way to find out which property was changed in the StyleManager? For eg. If I select a Text component and change its backgrou...
Issue #2908
FEAT: Combine getDirtyCount with undo/redo
Currently the changesCount is only increased regardless of undo and redo. I wonder if there is an application where the actual value is use...
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
Issue #700
Undomanager and ctrl+z/ctrl+y
we load content from db once editor page load and if use select undo after any changes it makes editor canvas blank. Is there way to solve...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.