How can I get the value from RichTextEditor?
richTextEditor1.Text not working
Thanks for the answer Levie, RichTextEditor does not accept character white space.
Either Devextreme dxHtmlEditor: http://demo.wisej.com/devextreme/#dxHtmlEditor
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
Please login first to submit.