There should be a mechanism to check whether the inserting text is in a valid link format. I think we can use regex for link validation.