Re: HTML WYSIWYG and images
Posted: 02/16/2005 23:18:15
> > Use OnHTMLSaveImage or OnSaveImage2 events to customize HTML image
> Yes I saw these - I'm not quite sure what to do with them though. I
> think maybe the OnSaveItemToFile event would be more useful, since it
> has an OutStr parameter that I can modify... but I'm not sure how to get
> the value I need for this:
OnSaveItemToFile can do this work, but it's much more complicated.
In this event, you need to provide the code what will be inserted in HTML
for this picture, including all HTML tags and attributes. I.e. you
completely replace default TRichView code for saving pictures.
For example, OutStr may be '<img src="myfile.gif">'.
Note that default TRichView can save not only src attribute of <img>, but
also width, height, align, border, alt, title, etc.
On the contrary, when using OnHTMLSaveImage or OnSaveImage2, you only
returns the value of <img src>.
The main output parameter of these events is Location: String. It will be
inserted to HTML as a value of <img src>
Powered by ABC Amber Outlook Express Converter