This is a migrated thread and some comments may be shown as answers.

Inserting images that keep the path for html

2 Answers 139 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 30 Mar 2014, 04:11 PM
Hello,

I would like to use the RadRichTextBox as my html editor for sending e-mails (I have already written an Outlook Integration). Right now I use an html editor, but it doesn't have spell check.

My problem is that the html generated from the RadRichTextBox embeds the images in the HTML instead of letting me convert them (using the local path) into MIME attachments when sending e-mail.

Is there a way to insert an image and not have it embedded, but keep the path in the img tag instead?

Thanks in advance,

Philip Carter

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 02 Apr 2014, 11:48 AM
Hi Philip,

Thank you for contacting us.

The export mode of the image is controlled by the ImageExportMode property. For example you can set this property along with the export settings like this: 
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
HtmlExportSettings settings = new HtmlExportSettings();
 
settings.ImageExportMode = Telerik.WinControls.RichTextBox.FormatProviders.Html.ImageExportMode.UriSource;
htmlProvider.ExportSettings = settings;

More information about this is available in the following article: Import/Export Settings.

Please let me know if there is something else I can help you with. 

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Philip
Top achievements
Rank 1
answered on 02 Apr 2014, 02:08 PM
Thank you so much. I really appreciate your help.
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Philip
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Philip
Top achievements
Rank 1
Share this question
or