Hello.
Is it possible to somehow call OnReadHyperlink while pasting RVF?
I need to convert links to my inner form when pasting.
OnReadHyperlink for RVF
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry, no. RVF is inserted as it is.
You can process OnPaste to paste in hidden RichViewEdit:
You can process OnPaste to paste in hidden RichViewEdit:
Code: Select all
var Stream: TMemoryStream;
begin
if rveHidden.CanPasteRVF then begin
rveHidden.PasteRVF;
<process all items in rveHidden, change tags for links>
Stream := TMemoryStream.Create;
rveHidden.SaveRVFToStream(Stream, False);
Stream.Position := 0;
TCustomRichViewEdit(Sender).[color=red]InsertRVFFromStreamEd[/color](Stream);
Stream.Free;
DoDefault := False;
end;
end;
Last edited by Sergey Tkachenko on Tue Oct 12, 2010 10:03 am, edited 1 time in total.
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: