Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Toggle editor with Javascript
Re: Toggle editor with Javascript
02-01-2010, 4:28 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Toggle editor with Javascript
Reply
Quote
Hi Misha999,
Try
<%@ Page Language=
"C#"
%>
<%@ Register Assembly=
"CuteEditor"
Namespace=
"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 runat=
"server"
>
<title>Untitled Page</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<input type=
"button"
value=
"hide"
onclick=
"hide()"
/>
<input type=
"button"
value=
"show"
onclick=
"show()"
/>
<CE:Editor ID=
"editor1"
runat=
"server"
Style=
"display: none"
>
</CE:Editor>
</form>
</body>
</html>
<script>
var editor1=document.getElementById(
"<%= editor1.ClientID %>"
);
function hide()
{
editor1.style.display=
"none"
;
}
function show()
{
editor1.style.display=
"block"
;
}
</script>
Regards,
ken
View Complete Thread