hasTextSelection had no interest. The other two values have been put inside an object to observe only one object.
This mixin leverages HTML callbacks that can be set by WebView editor to send text selection event to the composer so the composer will receive text selection event necessary to display buttons related to text selection.