Hi wpy126,
It works fine for me, can you reproduce this issue on our online demo?
Demo:
Please test the code below
-
<%@ Page Language="C#" AutoEventWireup="True" %>
-
-
<%@ 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">
-
</head>
-
<body>
-
<form id="Form1" runat="server">
-
<CE:Editor ID="Editor1" runat="server">
-
</CE:Editor>
-
<input type="button" value="AddTextToEditor" onclick="addContent()" />
-
</form>
-
</body>
-
</html>
-
-
<script type="text/javascript">
-
var editor1=document.getElementById('<%= Editor1.ClientID %>');
-
function addContent()
-
{
-
editor1.SetHTML("type something");
-
}
-
</script>
Regards,
ken