Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: opening create template on button click
Re: opening create template on button click
05-05-2010, 3:02 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: opening create template on button click
Reply
Quote
Hi
svk
,
Try
<%@ Page Language=
"C#"
ValidateRequest=
"false"
%>
<%@ Register TagPrefix=
"CE"
Namespace=
"CuteEditor"
Assembly=
"CuteEditor"
%>
<html>
<head>
</head>
<body>
<form id=
"Form1"
runat=
"server"
>
<CE:Editor ID=
"editor1"
runat=
"server"
>
</CE:Editor>
<asp:Button ID=
"button1"
runat=
"server"
Text=
"Open Template"
OnClientClick=
"openTemplate();return false"
/>
</form>
</body>
</html>
<script>
var editor1=document.getElementById(
"<%= editor1.ClientID %>"
);
function openTemplate()
{
editor1.ExecCommand(
"InsertTemplate"
);
}
</script>
Regards,
ken
View Complete Thread