Displayed HTML E-Mails throwing off rest of page

2 posts, 0 answers
  1. Noah
    Noah avatar
    1 posts
    Member since:
    Jun 2011

    Posted 09 Jun 2011 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 10 Jun 2011 Link to this post

    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.

Back to Top