Re: Disable Cute Editor in Client Side - reg

  •  12-20-2011, 3:18 AM

    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 Complete Thread