Issue #2888Opened July 10, 2020by acxvgalanov0 reactions

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)

artfJuly 14, 20200 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.