Relative hyperlinks
Relative hyperlinks
Hi,
I modified the editor sample bit so i could use it in one of my projects. One thing however keeps bothering me:
When I insert a hyperlink that has a relative path, it shows up correctly as long as I edit. After a reload however it becomes absolute (including driveletter and path of the document).
Is there a way to prevent this?
What I'm looking for is just be able to supply a path starting with a directory name without richview or richedit changing it.
I modified the editor sample bit so i could use it in one of my projects. One thing however keeps bothering me:
When I insert a hyperlink that has a relative path, it shows up correctly as long as I edit. After a reload however it becomes absolute (including driveletter and path of the document).
Is there a way to prevent this?
What I'm looking for is just be able to supply a path starting with a directory name without richview or richedit changing it.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hi,
Thanks for the quick response.
I used Editor 2 from the delphi Demo's as a basis.
I save to RTF with:
Btw the filenames/url should have a format like:
so no protocol prefix like file:// or http://
Thanks for the quick response.
I used Editor 2 from the delphi Demo's as a basis.
I save to RTF with:
Code: Select all
rvEditor.SaveRTF(fFileName, False);
Code: Select all
common/movie1.flv
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Well, really, on RTF import, TRichView adds the file path to relative links.
In the next update for registered users (I hope to upload it today) I'll add a new property TRichView.RTFReadProperties.BasePathLinks: Boolean. It will work like the corresponding option of RVHtmlImporter - when set to False, the file path will not be added to links.
In the next update for registered users (I hope to upload it today) I'll add a new property TRichView.RTFReadProperties.BasePathLinks: Boolean. It will work like the corresponding option of RVHtmlImporter - when set to False, the file path will not be added to links.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: