Save Hyperlink in HTML

General TRichView support forum. Please post your questions here
Post Reply
CyberMuth
Posts: 8
Joined: Fri Jul 06, 2012 11:18 am

Save Hyperlink in HTML

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: 17572
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;
Post Reply