Page 1 of 1

Save Hyperlink in HTML

Posted: Mon Jul 09, 2012 9:35 am
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?

Posted: Mon Jul 09, 2012 11:38 am
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;