Fix extraneous span tags being added to editor

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