Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
If we're just calling `getCurrentState` by itself, wouldn't this cause the selection to be invalidated? I'm not sure that's what we want to happen. Can you explain?