rschaeferhig:
Adam,
I don't see how that example applies. We've already got the Editor on the page and configured the toolbars with our own buttons, etc. I need to know if there is a way to disable the Editor control in Javascript on the client side. Removing the toolbars or not is a secondary requirement.
There is a textbox on the page that, if used, we would want to disable the Editor. It's an either/or and we need to disable the Editor in real-time, not on a postback.
Thanks.
Hi rschaeferhig,
For now, editor does not support this function.
Maybe you can try hide editor. example
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <html>
- <head>
- </head>
- <body>
- <form id="Form1" runat="server">
- <CE:Editor ID="editor1" runat="server">
- </CE:Editor>
- <input type="button" value="Hide" onclick="hide()" />
- </form>
- </body>
- </html>
-
- <script>
- var editor1 = document.getElementById('<%= editor1.ClientID%>');
- function hide()
- {
- editor1.style.visibility="hidden";
-
- }
- </script>
Regards,
Ken