Page 1 of 1

Adding custom attributes to TRichViewEdit.

Posted: Sat May 10, 2025 6:33 pm
by yorax31
Is it possible to add custom HTML attributes (like 'data-id', 'data-type' etc.) to specific elements (e.g., images, tables, spans) within TRichViewEdit? I need to store some metadata alongside the content for processing later. I've explored the HTML export options but haven't found a straightforward way to inject these custom attributes. Any suggestions or examples would be greatly appreciated! I'm using Delphi 10.4.

Re: Adding custom attributes to TRichViewEdit.

Posted: Sun May 11, 2025 5:21 pm
by Sergey Tkachenko
There is no easy way to do it.
In the next update, I'll extend functionality of OnSaveHTMLExtra event to allow adding additional attributes when saving non-text items.