Persist deletes and undos in editor

So that deletes and undos will persist.