Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
The comment is definitely an improvement. If I make a selection, and call `getCurrentState`, would my selection disappear?