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

Displayed HTML E-Mails throwing off rest of page

1 Answer 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 1
Noah asked on 09 Jun 2011, 04:31 PM
We have some pages on our site that display e-mails sent through our system. Some of these displayed e-mails have embedded html in them (from e-mails we have received from clients) that is throwing off our CSS. We want to use a disabled RadEditor to display the e-mails. is there any way to easily isolate the e-mail within the editor from the rest of the site?

We tried to use iframes, but since the content is variable, we don't want to have scrollbars. With the Editor, it sizes itself properly, but the CSS in the e-mails is causing havoc on the rest of the site.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 Jun 2011, 03:13 PM
Hello Noah,

You can try to render RadEditor non editable in IFRAME mode using the code below and set the
AutoResizeHeight="true" so that it expands according to the content length in it:

Copy Code
<script type="text/javascript">
function OnClientLoad(editor) {
editor.enableEditing(false);
editor.set_editable(false);
}
</script>
<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad" EditModes="Design"
AutoResizeHeight="true">
<Content>
test
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
test
</Content>
</telerik:RadEditor>



Regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Noah
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or