General TRichView support forum. Please post your questions here
johnF
Posts: 27 Joined: Mon Feb 02, 2015 4:41 pm
Post
by johnF » Tue Feb 10, 2015 2:44 pm
Is there a way/option for Fields to save/load from HTML?
If not, could this be implemented? Perhaps by using the id attribute?
eg.
Code: Select all
rve.CurTextStyleNo := 6; // Field style
rve.InsertStringTag('Jim', 'forename'); // Field
would save to HTML as
Code: Select all
<span class=rvts6 id=forename>Jim</span>
and any spans with id attributes would be loaded appropriately.
johnF
Posts: 27 Joined: Mon Feb 02, 2015 4:41 pm
Post
by johnF » Wed Feb 11, 2015 12:47 pm
I've discovered RichViewEdit.InsertItem and TRVLabelItemInfo for fields. However I can't use RichViewEdit.InsertItem in TRVHTMLViewImporter as it only has TCustomRVData.
How do I add TRVLabelItemInfo using TCustomRVData ?
johnF
Posts: 27 Joined: Mon Feb 02, 2015 4:41 pm
Post
by johnF » Wed Feb 11, 2015 12:53 pm
Never mind, I found RVData.AddItem