Not a bug insertContent(), replaceContent() method actions can not be reversed with undo button - editor.js

This is really more of a suggestion.

In the places those functions are used, they are really just designed to take care of inserting the content and nothing else.

The expectation really is to push to the undo stack when you need to. That can be done with:

JavaScript:
ed.undo.saveState();
 
Back
Top Bottom