"Open all external links in a new tab" does not work when you select some text

Do you want to open a PR about this? If not I will do it.