Different Handling overriting links in trichview

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 54
Joined: Wed Dec 09, 2020 9:36 am

Different Handling overriting links in trichview

Post by tomr »

Hello TRichView Support,
I have encountered an issue regarding overwriting hyperlinks, which can also be reproduced in the demo application.

When the hyperlink is the first element in a line, everything works as expected:
Enter an email address so that the hyperlink is automatically detected.
First Hyperlink.png
First Hyperlink.png (10.7 KiB) Viewed 176 times
Add spaces at the end and select the entire line.
First Hyperlink Selected.png
First Hyperlink Selected.png (8.85 KiB) Viewed 176 times
Overwrite the hyperlink while keeping the same target.
First Hyperlink Overriten.png
First Hyperlink Overriten.png (15.28 KiB) Viewed 176 times
In this case, the hyperlink target remains intact.

However, if I follow the same steps but insert spaces or tabs before the hyperlink, the target is lost after overwriting.
Second Hyperlink Selected.png
Second Hyperlink Selected.png (4.43 KiB) Viewed 176 times
Second Hyperlink Overriten.png
Second Hyperlink Overriten.png (17.9 KiB) Viewed 176 times
In Microsoft Word, the hyperlink target remains unchanged in both scenarios.

Could you please confirm whether this is expected behavior or a known issue?

Kind regards,
Tom
Sergey Tkachenko
Site Admin
Posts: 18103
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Different Handling overriting links in trichview

Post by Sergey Tkachenko »

Overwrite the hyperlink while keeping the same target.
How exactly I need to overwrite the hyperlink?
If I select the whole line (hyperlink + trailing non-hyperlink spaces), new typed characters will have style of non-hyperlink spaces.
tomr
Posts: 54
Joined: Wed Dec 09, 2020 9:36 am

Re: Different Handling overriting links in trichview

Post by tomr »

Hi Sergey,
Sorry, my previous description may have been inaccurate.
You do not need to select the entire line—that was incorrect.
Wrong Selection.png
Wrong Selection.png (6.06 KiB) Viewed 165 times
Instead, only select the spaces after the hyperlink together with the hyperlink itself.
Wright Selection.png
Wright Selection.png (15.17 KiB) Viewed 165 times
Post Reply