Re: EditorWysiwygModeCss

  •  12-01-2005, 9:35 AM

    Re: EditorWysiwygModeCss

    Okay, here's my page code:

    <html>
    <head>
    <title>CETest</title>
    </head>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <ce:editor id="editor" runat="server"
    ThemeType="Office2003_BlueTheme"
    EditorWysiwygModeCss="~/Style/Style.css"
    AutoParseClasses="false"
    width="500"
    height="300"
    AutoConfigure="Full">
    </ce:editor>
    <asp:Button ID="submit" Runat="server" Text="submit"/>
    </form>
    </body>
    </html>

    Here are the relecant lines from common.config:
    <CssClass>
    <item text="Header" value="bodyhdr">
    <html><![CDATA[<span class='bodyhdr'>Header</span>]]></html>
    </item>
    <item text="Normal" value="body">
    <html><![CDATA[<span class='body'>Normal</span>]]></html>
    </item>
    </CssClass>

    And here are the styles from Style.css:
    .body { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000000}
    .bodyhdr { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #0060c0}

    So the CssClass dropdown just has plain text in it, and does not apply the css classes inside the dropdown. It *does* apply the styles correctly to highlighted text. However, if I type a word, press return a few times, then type another word, if I then double-click on that word to highlight it, I cannot apply a style to it. This only happens in IE, in Firefox I can apply styles to the last word okay.

    thanks,
    matt
View Complete Thread