Extend 'undo' event
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)
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 #3506
FEAT: add click event on blocks
Or Is there any way to listen for click event in block ?
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...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins ā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.