Fix #25, #33

#33 was actually a side-effect of the weird text selection described in
#25. Added code to remove the content editable atttribute while
selecting, and then add it back when the selection finished.