Thread:VisualEditor/Feedback/External links/reply (19)

Maybe the following idea is to simple. But here it is: Current result: http://example.com Expected result: label How to achieve it: The only problem is if a user wants an internal link that looks like an external link. Is this a relevant use case? I don't think so. If this is really needed it requires additional steps but will be possible even with the proposed change:
 * Let's say the user entered http://example.com first instead of the label for whatever reason. You know, users stick to patterns no matter if there is an easier way. ;-)
 * He selects the URL and pushes the button.
 * He enters the label and hits enter.
 * Your are checking for external links anyway. Do the same here.
 * Check if the selected text is plain text (currently not a link) and looks like an external link.
 * Check if what the user entered in the "Hyperlink" box does not look like an external link.
 * Switch the two.
 * If the user tries to create  he will end with   as described above.
 * Now he can edit both the link and the label to achieve the result he wants. VE will not change it any more since no plain text is selected.