Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Email template background issue

Not answered Email template background issue

Feed from this thread
  • Phil avatar

    Posted on Feb 6, 2012 (permalink)

    I am working on a Email template and have been having two issues within the editor.

    I am trying to include a heading table with a background:
    <table width="586px" height="184" border="0" cellpadding="0" cellspacing="0" background="http://www.mydomain.org/portals/0/e-News/CommunicationsBanner.png" bgcolor="#FFFFFF">

    First, the editor is replacing the URL path with a relative path.
    This of course fails in an Email setting.

    Second, It is converting the background setting with a Style="background: ...
    The Background images Style settings are being stripped by the Email Clients.

    Is there a way to change this behavior?
    Preferably only for the Email Page.
    Thanks

    Reply

  • Dobromir Dobromir admin's avatar

    Posted on Feb 7, 2012 (permalink)

    Hi Phil,

    Straight to the issues:
    1. I am not quite sure what may be causing this behavior, by default, RadEditor does not modify URLs in the content. Have you applied any customizations to the control? If so, could you please provide more detailed information regarding these modification?
    2. This is expected behavior, caused by ConvertToXhtml built-in content filter which converts obsolete HTML attributes into Style to ensure that the generated content is XHTML Compliant. Nevertheless, RadEditor offers another built-in content filter ConvertInlineStylesToAttributes, which is disabled by default. You can enable this filter using the following code:
      RadEditor1.EnableFilter(Telerik.Web.UI.EditorFilters.ConvertInlineStylesToAttributes);
      More information regarding RadEditor's content filters is available in this LiveDemo and help article:

    On a side note, version 5.4 or later of DNN uses the Professional provider of RadEditor, which is implementation of the DNN developers and it is not supported by Telerik. If you experience these issues in DNN, our suggestion is to post your question in the DNN forums and contact the support of DNN for help. This article could be also helpful : Taming (customizing) The new Telerik RadEditor.


    All the best,
    Dobromir
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Email template background issue