Create new undo manager to prevent undo-to-blank-editor

Would like to get a working test, but this works when trying it in the browser.

Paired with Stefan Dausend-Werner.