Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: Force spellchecker to run?
Re: Force spellchecker to run?
08-31-2010, 9:40 PM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Force spellchecker to run?
Reply
Quote
hi cheryll,
Try the new example
<%@ 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>
<script runat=
"server"
>
protected
override
void
OnLoad(EventArgs e)
{
editor1.Text =
"aaa bbb"
;
base
.OnLoad(e);
}
protected
void
button1_Click(
object
sender, EventArgs e)
{
//Execute your codebehind method here
label1.Text =
"codebehind method achieve"
;
}
</script>
<form id=
"form1"
runat=
"server"
>
<CE:Editor ID=
"editor1"
runat=
"server"
>
</CE:Editor>
<input type=
"button"
value=
"Save text"
onclick=
"save()"
/>
<asp:Button ID=
"button1"
runat=
"server"
Style=
"visibility: hidden"
OnClick=
"button1_Click"
/>
<asp:Label ID=
"label1"
runat=
"server"
ForeColor=
"red"
></asp:Label>
</form>
</body>
</html>
<script>
function save()
{
var editor1=document.getElementById(
"<%= editor1.ClientID %>"
);
var button1=document.getElementById(
"<%= button1.ClientID %>"
);
editor1.ExecCommand(
"NetSpell"
);
button1.click();
}
</script>
Regards,
ken
View Complete Thread