Hi moskie,
Please try the example below
<%@ Page Language="C#" ValidateRequest="False" %>
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<html>
<head>
<title>ASP.NET WYSIWYG Editor - Support output well-formed HTML and XHTML</title>
</head>
<body>
<form id="Form1" runat="server">
<CE:Editor ID="Editor1" runat="server">
</CE:Editor>
<br />
<asp:Button ID="btnUpdate" OnClick="Submit" runat="server" Text="Submit"></asp:Button><br />
<asp:TextBox ID="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="770px"></asp:TextBox>
</form>
</body>
</html>
<script runat="server">
void Page_Load(object sender, System.EventArgs e)
{
if (IsPostBack)
{
textbox1.Text = Editor1.XHTML;
}
else
{
Editor1.Text = "test content";
}
}
public void Submit(object sender, System.EventArgs e)
{
textbox1.Text = Editor1.XHTML;
}
</script>
<script type="text/javascript">
function CuteEditor_FilterHTML(editor,code)
{
return code.split("&").join("&");
}
function CuteEditor_FilterCode(editor,code)
{
return code.split("&").join("&");
}
</script>
Regards,
Ken