cuteeditor version 6.6 and IE9 gives null

Last post 03-12-2012, 8:56 AM by slash. 2 replies.
Sort Posts: Previous Next
  •  03-12-2012, 5:12 AM 73401

    cuteeditor version 6.6 and IE9 gives null

    Hello,
     
    I'm using Cuteeditor version 6.6. When using the compontent as a image selector under IE9, I get an error when I click the folder names in the image selector -> null. See below. How do I fix that?
  •  03-12-2012, 8:00 AM 73403 in reply to 73401

    Re: cuteeditor version 6.6 and IE9 gives null

    Hi slash,
     
    Please try the example below, does it work for you? If the example below get the same problem, I suggest you download the latest version and try again.
     
    Latest version downloads http://www.cutesoft.net/downloads/folders/21904/download.aspx 
     
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <%@ Page Language="C#" %>
    <html>
    <head>
        <title>ASP.NET WYSIWYG Editor - Use CuteEditor as an image selector</title>
        <style>
            body { 
            text-align: center; 
            margin-top:20px
            }
            .demo { 
            text-align: left; 
            width: 700px;
            border:solid 5px #CBCAC6;
            background-color:#fbfbfb;
            padding: 30px 30px 50px 30px; 
            font-family:Segoe UI, Arial,Verdana,Helvetica,sans-serif;
            font-size: 100%;
            margin: 0 auto; 
            } 
        </style>
    </head>
    <body>
        <form id="Form1" runat="server">
            <div class="demo">
                <h3>
                    Use CuteEditor as an image selector</h3>
                <p>
                    This example demonstrates how to use CuteEditor as an image selector.
                </p>
                <asp:TextBox ID="imageFld" Width="300" runat="server" />
                <input type="button" value="Change Image" onclick="callInsertImage()" id="Change"
                    runat="server" name="Change">
                <CE:Editor id="Editor1" runat="server" Width="1" Height="1" AutoConfigure="None"
                    ShowHtmlMode="False" ShowPreviewMode="False" EnableContextMenu="false" ShowGroupMenuImage="False"
                    ShowBottomBar="False" BackColor="White" BorderColor="White">
                </CE:Editor>
            </div>
        </form>
        <script language="javascript"> 
        function callInsertImage()  
        {  
                var editor1 = document.getElementById('<%=Editor1.ClientID%>');
                editor1.FocusDocument();  
                editor1.ExecCommand('InsertImage');
                InputURL();
        }    
        
        function InputURL()
        { 
            var editor1 = document.getElementById('<%=Editor1.ClientID%>');
            var editdoc = editor1.GetDocument();  
            var imgs = editdoc.images;
            if(imgs.length>0)  
            {    document.getElementById("imageFld").value = imgs[imgs.length-1].src;
                editor1.ExecCommand('new');
                document.getElementById("imageFld").focus(); 
            }  
            else
            {
                setTimeout(InputURL,500); 
            }  
        }       
        </script>
    </body>
    </html>
     
     
    Regards,
     
    Ken 
  •  03-12-2012, 8:56 AM 73406 in reply to 73403

    Re: cuteeditor version 6.6 and IE9 gives null

    Fixed after I downloaded version 6.6 again.

View as RSS news feed in XML