Add editor undo function (by MAP94)