Undo/Redo

WYMeditor's undo is, in some cases, not accurate.
I'm not sure whether this removes the `span` markers or not. We'll come across this when we write some tests so I'll just leave it like this for now.