Re: CE steals focus

  •  08-22-2005, 3:58 PM

    Re: CE steals focus

    Jess,
     
    If you have mutiple editors in a single page, the last editor get the focus automatically.
     
    We will resolve this problem in the next version. Sorry for the inconvenience.
     
    A workaround for this issue is putting some javascript code in the bottom of your page and giving the focus back to the element you want.
     
    This is an example:
     
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html>
       
    <body>
           
    <form name="theForm" action="Get_HtmlContent.asp" method="post" ID="Form1">
           
    <input id="myinput" name="myinput" type=text>
               
    <%
                   
    dim content content ="test"Dim editor Set editor =New CuteEditor editor.ID ="Editor1"
                    editor.Draw()
    %>
                <input type="submit" value="Submit" ID="Submit2" NAME="Submit1">
               
    <script> document.getElementById('myinput').focus; </script>
            </form>
    </body>
    </html>

    Hope it helps.
     
     

    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