Syncfusion Essential JS2 Integration RichTextEditor get Text

0
0

How can I get the value from RichTextEditor?

richTextEditor1.Text not working

 

 

  • You must to post comments
0
0

Thanks for the answer Levie, RichTextEditor does not accept character white space.

Either Devextreme dxHtmlEditor: http://demo.wisej.com/devextreme/#dxHtmlEditor

 

 

  • Levie (ITG)
    Hi Paul, thanks for letting me know. I’ll update the extension! Regards, Levie
  • You must to post comments
0
1

Hi Paul,

You can get the text from the RichTextEditor control with something like this:

private async void button1_Click(object sender, EventArgs e)
 {
     var text= await this.richTextEditor1.Instance.getTextAsync();
 
     AlertBox.Show(text.ToString());
 }

 

All client-side widget methods and events are exposed through the Instance dynamic object. When using Widget.Instance, any trailing members are converted into client-side JavaScript calls on the widget. You also have the option to specify async at the end of any method which will allow you to await the response.

You can find a list of all available properties, methods, and events for the RTE here: https://ej2.syncfusion.com/documentation/api/rich-text-editor/#gettext

 

I’ll log the Text property issue too, it should return the Text of the RTE.

 

HTH,

Levie

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.