KaxEditorContent Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public string Content { get; set; }
The text returned by this property contains HTML markup. If only the text is needed use the Text property.
You can also set the text content of the KaxEditor inline between the <Content></Content> tags. In this case setting this property in the code behind will override the inline content.
<kaxe:KaxEditor id="KaxEditor1" runat="server"
>
<Content>
Kettic KaxEditor<br>
the best <span style="COLOR: red">html editor</span> in the
world
</Content>
</kaxe:KaxEditor>
<asp:button id="btnSave" runat="server" text="Submit"
onclick="btnSave_Click" /><br />
Content:<asp:label runat="server" id="LabelContent"></asp:label><br
/>
Text:<asp:label runat="server" id="LabelText"></asp:label><br
/>
Private Sub btnSave_Click(sender As Object, e As System.EventArgs) 'HtmlEncode the content of the editor to display the HTML tags LabelContent.Text = Server.HtmlEncode(KaxEditor1.Content); LabelText.Text = Server.HtmlEncode(KaxEditor1.Text); End Sub
private void btnSave_Click(object sender, System.EventArgs e) { //HtmlEncode the content of the editor to display the HTML tags LabelContent.Text = Server.HtmlEncode(KaxEditor1.Content); LabelText.Text = Server.HtmlEncode(KaxEditor1.Text); }