Issue #1968Opened April 19, 2019by sakshigarg90 reactions

Get information on action that was undone

Question

Is it possible to extract information on what was undone. I tried

const um=editor.UndoManager;
um.getStack();

but I'm unable to fetch information on exactly what was undone, the value of after property under model.attributes is null. I wish to extract the id of the element that action was performed on and what update in style/removal/property/edit was made.

Answers (2)

artfApril 23, 20190 reactions

Check model.attributes.type to understand the action executed, probably the after is null because the action was remove

lock[bot]April 25, 20200 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.