wpLink: use the proper instance of the editor when looking at the selection. Move the email and URL regexp to variables. See #19992

git-svn-id: https://develop.svn.wordpress.org/trunk@28750 602fd350-edb4-49c9-b593-d223f7449a82