Re: Change EditorWysiwygModeCss then looses event postback

  •  09-20-2006, 2:58 PM

    Re: Change EditorWysiwygModeCss then looses event postback

    AndyFel,
     
    The source code of the above example is as following:
     
    <%@ Page Language="C#" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <script runat="server">
     private void theme_Changed(Object sender, EventArgs e)
     {
      Editor1.EditorWysiwygModeCss  = themeList.SelectedItem.Value; 
      
      Literal1.Text = "Cute Editor automatically parse the CSS classes from EditorWysiwygModeCss <font color=darkred><b>("+themeList.SelectedItem.Value+")</b> </font> and populate all items into CssClass dropdown";
     }

    </script>
    <html>
            <form runat="server">
       <asp:radiobuttonlist id="themeList" runat="server" autopostback="True" RepeatDirection="Horizontal" onselectedindexchanged="theme_Changed">
        <asp:ListItem value="style.css"  Selected="True">style.css</asp:ListItem>
        <asp:ListItem value="backgroundimage.css">backgroundimage.css</asp:ListItem>
        <asp:ListItem value="style.css,backgroundimage.css">style.css+backgroundimage.css</asp:ListItem>
       </asp:radiobuttonlist>
       </p>
       <br>
       <p>            
       <CE:Editor ThemeType="Office2003_BlueTheme" id="Editor1" runat="server" Height="250" AutoConfigure="Simple"></CE:Editor>
       
       <br><br>
       <asp:Literal ID="Literal1" Runat="server" /> 
      </form>
    </html>
     
    Please test it first and modify it to meet your requirments.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread