Text not saving on IE9 - EditorWysiwygModeCss problem

Last post 01-05-2012, 8:12 AM by ChrisDenning. 10 replies.
Sort Posts: Previous Next
  •  06-07-2011, 5:11 AM 67839

    Text not saving on IE9 - EditorWysiwygModeCss problem

    Hello Support,
     
    I experienced this problem when I started using editor with IE9
     
    My editor is not saving the text if I use editor.EditorWysiwygModeCss declaration in the script.

    Could you check and let me know what's the problem is.
     
    Best Regards,
    Nimish
  •  06-07-2011, 2:25 PM 67845 in reply to 67839

    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
  •  06-27-2011, 10:22 AM 68174 in reply to 67845

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    Hi,
     
    I tested your code and yes it works.
     
    But my snippet doesn't work:
     
     
    1. <%@ Page Language="C#" AutoEventWireup="true" Inherits="V3.testCE"  ValidateRequest="false" %>  
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    6. <html>  
    7.     <head>  
    8.   <title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title>   
    9.  </head>  
    10.  <body>  
    11.         <form id="Form1" runat="server">  
    12.    <table>  
    13.     <tr>  
    14.      <td valign="top" width="750">  
    15.       <CE:Editor ID="Editor1" runat="server" Width="771px" Height="188px" AutoConfigure="Minimal"  
    16.         BreakElement="Br" UseHTMLEntities="False"  
    17.         AutoParseClasses="false" EditorWysiwygModeCss="example.css" EditorBodyClass="ceBackground" >  
    18.        </CE:Editor>  
    19.        <br />  
    20.        <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />     
    21.        <asp:TextBox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox>  
    22.      </td>  
    23.     </tr>  
    24.    </table>     
    25.   </form>  
    26.  </body>  
    27. </html>  
    28.   
    29. <script runat="server">  
    30. void Page_Load(object sender, System.EventArgs e)  
    31. {  
    32.     if (IsPostBack)  
    33.     {  
    34.         Editor1.SaveFile("document.htm");  
    35.         textbox1.Text = Editor1.Text;  
    36.     }  
    37.     else  
    38.     {  
    39.         Editor1.LoadHtml("document.htm");  
    40.     }  
    41. }  
    42. public void Submit(object sender, System.EventArgs e)  
    43. {  
    44.     Editor1.SaveFile("document.htm");  
    45.     textbox1.Text = Editor1.Text;  
    46. }  
    47. </script>
    On IE9, if you click on submit, the text is not saved. But if you change the thumbnail to HTML or Preview before clicking to Submit, it will works.
     
    Second issue, if you set the "ceBackground" class in example.css with the property "background:#ff0000;" for example, you will see that IE9 doesn't apply the style BUT IE7 do it...
     
    Could you please check the problem?
     
    Regards,
     
    Laurent
     
     
     
  •  06-27-2011, 8:44 PM 68182 in reply to 68174

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    Hi boondooa,
     
     
    On IE9, if you click on submit, the text is not saved. But if you change the thumbnail to HTML or Preview before clicking to Submit, it will works.
     
    Is your site online? If so, can you poste the test page url? So I can check it for you.
     
    Second issue, if you set the "ceBackground" class in example.css with the property "background:#ff0000;" for example, you will see that IE9 doesn't apply the style BUT IE7 do it...
     
    We are investigating this issue. For now, please use property "EditorBodyStyle", it can achieve the same function as "EditorBodyClass".
     
     <CE:Editor ID="Editor1" runat="server" EditorBodyStyle="background-color:Red;">
                        </CE:Editor>
     
    Regards,
     
    ken
  •  07-22-2011, 8:42 PM 68781 in reply to 68182

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    On IE9, if you click on submit, the text is not saved. But if you change the thumbnail to HTML or Preview before clicking to Submit, it will works.
     
    This still isn't working in IE9 with the latest download of CuteEditor. Is this being addressed? 
     
    Thanks. 
  •  09-27-2011, 4:18 PM 70219 in reply to 68781

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    I am also observing this problem but it's intermitent. Sometimes I click the save button and it saves as expected but somtimes it doesn't.
  •  09-27-2011, 4:54 PM 70220 in reply to 68781

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    AdamD:
    On IE9, if you click on submit, the text is not saved. But if you change the thumbnail to HTML or Preview before clicking to Submit, it will works.
     
    This still isn't working in IE9 with the latest download of CuteEditor. Is this being addressed? 
     
    Thanks. 
     
    This example is running the latest version of Cute Editor.
     
     
    Can you check it?
     
    It works for me.
     
    The latest version can be downloaded at:
     
     
     

    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

  •  09-27-2011, 4:57 PM 70221 in reply to 70219

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    frJericho:
    I am also observing this problem but it's intermitent. Sometimes I click the save button and it saves as expected but somtimes it doesn't.
     
    Can you find a way to produce this issue? What happen if you implement your own submi button instead of the built-in save button? 

    Can you catch the save button click event and compare the html code before clicking and after clicking?
     
     

    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

  •  12-22-2011, 12:05 PM 72410 in reply to 70221

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    I am having the same problem.  We're using CuteEditor.NET v6.6 (I think), with a Save button on the web page, rather than the save icon in the CuteEditor toolbar.  
     
    The editor is included on the page as follows:
     
        <CE:Editor ID="Editor1" EnableStripScriptTags="false"
        ThemeType="Office2003_BlueTheme" Height="500"
          AutoParseClasses="False"
          ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/dctest.config"
          BreakElement="p" RemoveTBODYTag="true" EditorOnPaste="ConfirmWord"
          Width="100%" 
          EditorWysiwygModeCss="~/styles/knowledge.css"
          DisableAutoFormatting="true"
          runat="server">
        </CE:Editor>
     If I try to save content in IE9 with compatibility view off, it repeatedly fails to save.
     
    I can get it to work
    • if I turn compatibility view on
    • if I remove the EditorWysiwygModeCss line from the above
    • if I edit the text, swap from Normal to Html view and then back before saving. 
    I tried your online demos, and the ones I can save work.  However, the most relevant one I presume is the "External style sheets" demo at http://cutesoft.net/example/Using-External-Style-Sheets.aspx but that demo has neither a Submit button on the form nor a save icon on the toolbar.   Could you perhaps fix that demo to allow saving as the others do so we can try that out as a reproduction scenario.
    If I get a chance I'll try catching the save button event as you suggest. 
     
    Chris 
  •  12-23-2011, 6:23 AM 72415 in reply to 72410

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    Hi ChrisDenning,
     
    The ie 9 save issue already fixed in the latest version, please download the latest version and try again. 
     
    latest version downloads http://www.cutesoft.net/downloads/folders/21904/download.aspx 
     
    Regards,
     
    Ken 
  •  01-05-2012, 8:12 AM 72510 in reply to 72415

    Re: Text not saving on IE9 - EditorWysiwygModeCss problem

    Hi,
     
    Just to confirm, I upgraded to the latest build and this problem is solved.
     
    Chris 
View as RSS news feed in XML