Smart links working inconsistently

mr
mrkwr
Posts: 31
Joined: Fri Feb 09, 2007 9:26 am

Thu Dec 17, 2009 12:59 pm Post

I'm having trouble with the smart links feature, i.e. the feature that turns URLs into active links.

If I type a URL directly into Scrivener, character-by-character, it dutifully goes blue and turns into a link

But if I past the same characters (e.g. having copied the URL from a browser) the URL doesn't turn into a live link whatever I do (apart from manually select the Make Link option, of course).

You get the same result whether you paste formatted or plain text

Similarly, if I type an email address manually it becomes live, but any kind of pasted-in text won't become a mailto: link

What gives?

-Mark

PS: the Help pages for Preferences - Text Editing need updating to include the Smart Links option

User avatar
KB
Site Admin
Posts: 20922
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Thu Dec 17, 2009 1:10 pm Post

The Help file will be rewritten for 2.0.

Smart links are a feature of the OS X text system, and they are a bit flaky. You'll find the same behaviour across OS X, in TextEdit, for example. In other words, I didn't code them, Apple did and I just added them as an option seeing as they are available - my code literally involves "[textView setUsesSmartLinks:YES]" or "[textView setUsesSmartLinks:NO]". :)

All the best,
Keith