hi,
this code works fine to assign ajax editor control value to to label.
But when i change color, font size and font name in editor control it does not assign the styles to label.
Please advice
<div>
<script type="text/javascript">
Sys.Application.add_load(function () {
var htmlEditorBox = $('.ajax__html_editor_extender_texteditor');
htmlEditorBox.keyup(function () {
document.getElementById('lblContents').innerHTML = this.textContent;
});
});
</script>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:TextBox ID="txtEditor" CssClass="Editor" runat="server" Width="300" Height="200" />
<asp:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="txtEditor">
</asp:HtmlEditorExtender>
<br />
<asp:Button Text="Submit" runat="server" OnClick="Submit" />
<br />
Entered Text:
<asp:Label ID="lblContents" runat="server" />
</div>