EditorWysiwygModeCss and DOCTYPE

  •  11-19-2007, 10:24 AM

    EditorWysiwygModeCss and DOCTYPE

    I'm working on integrating CuteEditor into a site that I'm developing.  It is intended to edit small sections of HTML that eventually get put back together for display.  In order to get a better idea of what each section will look like, I'm applying the CSS from the final site using the EditorWysiwygModeCss property.

    The problem I'm encountering is that the CuteEditor's preview is being displayed as though it doesn't have a DOCTYPE.  This is most visible in the font sizes, which are often displayed much larger than they would be on the final site.

    Is there any way to specify the DOCTYPE without editing a full HTML document in the CuteEditor?

    Here's my CuteEditor declaration:
    <CE:Editor ID="SectionContentEditor" DisableItemList="FontName, FontSize" AutoParseClasses="true" runat="Server" DOCTYPE="<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN''http://www.w3.org/TR/html4/loose.dtd'>">
    </CE:Editor>

    CSS is applied dynamically, during Page_Load:
    SectionContentEditor.EditorWysiwygModeCss = themeCss;

    Despite being set, the DOCTYPE property doesn't appear to have any affect.  Anyone have any ideas?
View Complete Thread