Skip to main content
A newer version of this page is available. .

ASPxClientHtmlEditor.GetHtml Method

Gets the HTML markup that represents the editor’s content.

Declaration

GetHtml(): string

Returns

Type Description
string

A string value that represents the HTML markup.

Example

<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" 
    ClientInstanceName="htmlEditor">
</dx:ASPxHtmlEditor>
<br/>
<dx:ASPxButton ID="ASPxButton1" runat="server" 
    AutoPostBack="False" Text="ASPxButton">
    <ClientSideEvents Click="function(s, e) {
        var myText = htmlEditor.GetHtml();
        myMemo.SetText(myText); 
     }" />
</dx:ASPxButton>
<br/>
<dx:ASPxMemo ID="ASPxMemo1" runat="server" 
    ClientInstanceName="myMemo"  Height="71px" Width="170px">
</dx:ASPxMemo>
See Also