Support forums
in

Disable Cute Editor in Client Side - reg

Last post 12-20-2011, 3:18 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  12-16-2011, 5:44 AM 72039

    Disable Cute Editor in Client Side - reg

    Hi,
     
    Let me know how to diable the Cute Editor control in Client Side Javascript??
     
     
  •  12-20-2011, 3:18 AM 72366 in reply to 72039

    Re: Disable Cute Editor in Client Side - reg

    Hi sathishcbe,
     
    Editor has not the disable function at client side, I suggest you hide the editor when you do not want the user use it.
     
    <%@ Page Language="C#" %>
    <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div id="div1">
                <CE:Editor ID="editor1" runat="server">
                </CE:Editor>
            </div>
            <input id="button1" type="button" value="hide" onclick="hideEditor()" />
        </form>
    </body>
    </html>
    <script type="text/javascript">
    function hideEditor()
    {  
        var button1=document.getElementById("button1");
        var div1=document.getElementById("div1");
        if(button1.value=="hide")
        {
            button1.value="show";
            div1.style.visibility="hidden";
        }
        else
        {
            button1.value="hide";
            div1.style.visibility="visible";
        }
    }
    </script>
     
    Regards,
     
    Ken 
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems