Implement handler for CreateSpan command which is only enabled when text
in the view is selected.