Setting <a> target for hyperlinks

General TRichView support forum. Please post your questions here
Post Reply
EricNat
Posts: 11
Joined: Mon Feb 17, 2014 7:43 pm

Setting <a> target for hyperlinks

Post by EricNat »

Is there any way to allow the user to set the "target" for the <a href> when customizing the hyperlink using TRVInsertActionHyperlink? If not, could this be added to the wish list? We would like the user to be able to set the target as "_blank", "_new", etc. to determine where to open the hyperlink.

Also, on the form that shows when you add a hyperlink, it may be good to rename the "target label" as "URL" since the word "target" has a specific meaning for <a href>'s and it's where the link should open in the browser, not the URL/link itself.

Thanks!
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Setting <a> target for hyperlinks

Post by Sergey Tkachenko »

Yes, you can customize links before saving to HTML using OnWriteHyperlink event, see http://www.trichview.com/help/idh_trich ... rlink.html

As for "target" vs "URL". "Target" is more common word, it can include URLs, bookmarks/anchors/checkpoint, local files, or application-specific targets (which you can process specially in OnJump event). All this can be entered in that dialog.
Post Reply