Page 1 of 1

Save/Load fields in HTML

Posted: Tue Feb 10, 2015 2:44 pm
by johnF
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.

Posted: Wed Feb 11, 2015 12:47 pm
by johnF
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 ?

Posted: Wed Feb 11, 2015 12:53 pm
by johnF
Never mind, I found RVData.AddItem :lol: