General TRichView support forum. Please post your questions here
-
CyberMuth
- Posts: 8
- Joined: Fri Jul 06, 2012 11:18 am
Post
by CyberMuth »
Hello,
how can i save a hyperlink from richviewedit in a html file?
my code is:
Code: Select all
RichViewEdit1.InsertStringTag('New link', 'www.google.de');
RichViewEdit1.SaveHTMLEx('index.html', HTMLTitle,'img', '', '', '', [rvsoImageSizes,rvsoUseCheckpointsNames]);
if i load the html the string tag isn't a hyperlink.
what is the problem?
-
Sergey Tkachenko
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
-
Contact:
Post
by Sergey Tkachenko »
Process OnWriteHyperlink event.
Code: Select all
procedure TfrmMain.rveWriteHyperlink(Sender: TCustomRichView; id: Integer;
RVData: TCustomRVData; ItemNo: Integer; SaveFormat: TRVSaveFormat;
var Target, Extras: string);
begin
Target := RVData.GetItemTag(ItemNo);
end;