Re: Text not saving on IE9 - EditorWysiwygModeCss problem

  •  06-07-2011, 2:25 PM

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    Dear Nimish,
     
    I tested the following example, it contains EditorWysiwygModeCss  property, it can save the text correctly. Can you try this snippet?
     
    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head>
      <title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title> 
     </head>
     <body>
            <form id="Form1" runat="server">
       <table>
        <tr>
         <td valign="top" width="750">
          <CE:Editor id="Editor1" EnableStripScriptTags="false" EnableStripStyleTagsCodeInjection="false" EditorWysiwygModeCss="example.css" EditCompleteDocument="true"   runat="server" ></CE:Editor><BR>
          <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />   
          <asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox>       
         </td>
        <tr>
       </table>   
      </form>
     </body>
    </html>
    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
      {
         if (IsPostBack)
      {
       Editor1.SaveFile("document.htm");
       textbox1.Text = Editor1.Text;
         }
      else
      {
       Editor1.LoadHtml("document.htm");
      }  
     }
     public void Submit(object sender, System.EventArgs e)
     {
       Editor1.SaveFile("document.htm");
       textbox1.Text = Editor1.Text; 
     }
    </script>
     
    Thanks for asking
View Complete Thread