Bug or feature?

General TRichView support forum. Please post your questions here
Post Reply
Lucian
Posts: 56
Joined: Fri Aug 01, 2014 9:52 am

Bug or feature?

Post by Lucian »

Hi, I am curios if the next stuff is a bug. There are 2 possibilities to add a hyperlink inside TRichView content.

First, in a clean TRichview you open a dialog to get some hyperlink URL and insert the hyperlink with this code: RichView.InsertStringTag('New link', Target), than, immediately you type some characters. The new stuff that you just typed in appears as part of the hyperlink you just created.

The second possibility is that you have some selection, get a URL from some dialog and use code as in demos to create a hyperlink for the selected stuff. Again, if you type some characters at the end of the selection, the new stuff you just typed in appears as part of the hyperlink you just created.

My boss says this behavior is a bug. What do you think?

We actually want that after a hyperlink was created at some position, RIGHT THERE the hyperlink should end, and if the user wants to extend it, than it should type stuff INSIDE the hyperlinked stuff. This is how other html editors works (well I only have FrontPage to test, so I am assuming they all do the same...)

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

Post by Sergey Tkachenko »

TRichViewEdit does not close hyperlinks itself, it treats them as any other text.
You can write code for closing hyperlinks. See my reply here: http://www.trichview.com/forums/viewtopic.php?t=6582
Post Reply