Save/Load fields in HTML

General TRichView support forum. Please post your questions here
Post Reply
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

Save/Load fields in HTML

Post 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.
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

Post 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 ?
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

Post by johnF »

Never mind, I found RVData.AddItem :lol:
Post Reply