Setting <a> target for hyperlinks

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

Setting <a> target for hyperlinks

Post by EricNat » Tue Dec 12, 2017 5:08 am

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.


Sergey Tkachenko
Site Admin
Posts: 13674
Joined: Sat Aug 27, 2005 10:28 am

Re: Setting <a> target for hyperlinks

Post by Sergey Tkachenko » Tue Dec 12, 2017 12:13 pm

Yes, you can customize links before saving to HTML using OnWriteHyperlink event, see ... 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