Aug 24, 2015, 7:46 PM
[FIXED] [#880] [3.3] HtmlEditor text is "undefined"
Hi,
Please run the code sample below and observe that setting HtmlEditor's text to empty string on the server results in the "undefined" string on the client.
Please run the code sample below and observe that setting HtmlEditor's text to empty string on the server results in the "undefined" string on the client.
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
this.HtmlEditor1.Text = "";
}
}
protected void Submit(object sender, DirectEventArgs e)
{
X.Msg.Alert("Submit", "The following has been submitted:<br/><br/>" + this.HtmlEditor1.Text).Show();
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>HtmlEditor - Ext.NET Examples</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<ext:FormPanel runat="server">
<Items>
<ext:HtmlEditor
ID="HtmlEditor1"
runat="server"
Width="600"
EnableAlignments="false"
EnableFontSize="false"
CreateLinkText="My CreateLinkText">
<ButtonTips>
<BackColor Text="My BackColor Tip" />
<Bold Text="My Bold Tip" />
</ButtonTips>
</ext:HtmlEditor>
<ext:Button runat="server" Text="Submit" OnDirectClick="Submit" />
</Items>
</ext:FormPanel>
</form>
</body>
</html>
Last edited by Daniil; Aug 25, 2015 at 10:41 AM.
Reason: [FIXED] [#880] [3.3]