Fix extraneous span tags being added to editor

* Whenever the editor was clicked in, a new `<span>` was being erroneously created
* Fix for alignment icon sometimes disappearing