drop-in history implementation for a web based text editor