How about putting the text that was selected & auto-deleted into the clipboard so the user can paste it back again as the label?
After creating the link the cursor is already positioned at the correct position to do that. Then its on the users head if they paste something they shouldn't.
Preventing users from making mistakes can result in denying them opportunity to learn from them.
BR
|