EditorWysiwygModeCss + Doctype +IE9 = broken editor when saving

Last post 08-19-2011, 6:52 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  08-18-2011, 6:21 AM 69667

    EditorWysiwygModeCss + Doctype +IE9 = broken editor when saving

    Iam using the CuteEditor with EditorWysiwygModeCss  and i declared a doctype in my page 
    unfortunately the editor wont save the data i typed in the editor while 
    using IE9
    When i delete EditorWysiwygModeCss the editor is saving , Also when removing the doctype the editor starts to work.
     
    Does anyone have the same problem and is there a way to fix this?
     
    Working snippits:
    Deleted: EditorWysiwygModeCss
    1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="CuteEditorTest.aspx.vb" Inherits="CM_CuteEditorTest" %>  
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>     
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head runat="server">  
    7.     <title>Untitled Page</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.     <div>  
    12.     <CE:Editor id="txtEditor" runat="server" Width="98%" Height="350"/>  
    13.     </div>  
    14.       
    15.     <asp:Button runat="server" Text="Button" />  
    16.     </form>  
    17. </body>  
    18. </html> 
    Deleted doctype
    1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="CuteEditorTest.aspx.vb" Inherits="CM_CuteEditorTest" %>  
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>     
    3.   
    4. <html xmlns="http://www.w3.org/1999/xhtml">  
    5. <head runat="server">  
    6.     <title>Untitled Page</title>  
    7. </head>  
    8. <body>  
    9.     <form id="form1" runat="server">  
    10.     <div>  
    11.     <CE:Editor id="txtEditor" runat="server" Width="98%" Height="350" EditorWysiwygModeCss="~/CeCSS.css" />  
    12.     </div>  
    13.       
    14.     <asp:Button runat="server" Text="Button" />  
    15.     </form>  
    16. </body>  
    17. </html> 
    Combo not working
    1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="CuteEditorTest.aspx.vb" Inherits="CM_CuteEditorTest" %>  
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>     
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head runat="server">  
    7.     <title>Untitled Page</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.     <div>  
    12.     <CE:Editor id="txtEditor" runat="server" Width="98%" Height="350" EditorWysiwygModeCss="~/CeCSS.css" />  
    13.     </div>  
    14.       
    15.     <asp:Button runat="server" Text="Button" />  
    16.     </form>  
    17. </body>  
    18. </html> 
     
    Its not an option to delete one of those.
     
    It does save when u switch to another mode eg. Normal, HTML, Preview depending on the loadstate of the editor.
    when the editor is not working the amount of words and characters are also not shown
  •  08-18-2011, 3:04 PM 69694 in reply to 69667

    Re: EditorWysiwygModeCss + Doctype +IE9 = broken editor when saving

    Hi MarceIF,
     
    I tested the code you provide, it works fine for me.
     
    Can you try the example page below?
     
    Type some text in the editor then click the button, the label always got the new text from editor.
     
    I test with IE 9.0.8112.16421. If it need some special steps to reproduce, please show it to me.
     
    <%@ Page Language="VB" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

        Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
            label1.Text = txtEditor.Text
        End Sub
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <CE:Editor ID="txtEditor" runat="server" Width="98%" Height="350" EditorWysiwygModeCss="~/CeCSS.css" />
            </div>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /><br />
            <asp:Label ID="label1" runat="server"></asp:Label>
        </form>
    </body>
    </html>
     
    Regards,
     
    Ken
  •  08-19-2011, 3:38 AM 69701 in reply to 69694

    Re: EditorWysiwygModeCss + Doctype +IE9 = broken editor when saving

    I tried your snippit and it didnt work with the same IE9 version
    maybe we use a older version of  cuteeditor?
    If we update what is the impact? and where can i find the update files, because as far as i can see the version from the download section is the same.
    This is our testpage
    http://dev.themediabrothers.nl/cuteeditortest.aspx
     
     
    Thanks in advance
    MarcelF 
  •  08-19-2011, 6:52 AM 69707 in reply to 69701

    Re: EditorWysiwygModeCss + Doctype +IE9 = broken editor when saving

    Hi MarceIF,
     
    How to update to the latest version
     
    1. Download this package http://www.cutesoft.net/downloads/folders/21904/download.aspx
     
    2. Delete the old dll files  "CuteEditor.dll" and "CuteEditor.ImageEditor.dll" in the "bin" folder and use the new one in the download package.
     
    3. Delete folder "CuteSoft_Client" and use the new one in the download package.
     
    Note: please do a back up before the steps above.
     
    Regards,
     
    Ken
     
View as RSS news feed in XML