Add `has-selection` class to the editor div when there is a selection