It's jarring when your lose your selection while typing the URL for a link to add. Can we wrap the selection in a that mimics the style of selected text?
I've tried restoring the selection range, but that changes focus from the input. I'll investigate a bit more if there is a good generic way of doing this.
I think I've fixed this