HTML to TRichViewEdit and enabling the Link action
Posted: Sat Jan 17, 2009 10:33 am
I’m very close to a solution using TRichview, but I have some issues left.
1) The link action is disabled – what do I need to set in order for me to have the link action up and running? It seems like I need to set some event on each TRichViewEdit – doesn’t I ? I have one toolbar but multible TRichViewEdits. It work ok with bold, italic actions but not with InsertLink action.
2) When do I convert the HTML from the database so it will show up in each TRichViewEdit fields? At OnShow or… Does anybody have a generic convert procedure like:
procedure ConvertToRTF(FieldValue: WideString; var RichviewEdit: TRichViewEdit);
begin
try
OpretFBElementForm.RvHtmlImporter1.RichView := RichviewEdit;
OpretFBElementForm.RvHtmlImporter1.LoadHtml(FieldValue);
finally
RichviewEdit.Format;
end;
end;
Do I have to take care of anything, like UTF8 or....
TIA,
Kurt
1) The link action is disabled – what do I need to set in order for me to have the link action up and running? It seems like I need to set some event on each TRichViewEdit – doesn’t I ? I have one toolbar but multible TRichViewEdits. It work ok with bold, italic actions but not with InsertLink action.
2) When do I convert the HTML from the database so it will show up in each TRichViewEdit fields? At OnShow or… Does anybody have a generic convert procedure like:
procedure ConvertToRTF(FieldValue: WideString; var RichviewEdit: TRichViewEdit);
begin
try
OpretFBElementForm.RvHtmlImporter1.RichView := RichviewEdit;
OpretFBElementForm.RvHtmlImporter1.LoadHtml(FieldValue);
finally
RichviewEdit.Format;
end;
end;
Do I have to take care of anything, like UTF8 or....
TIA,
Kurt