Model binding to Rich Text Editor

Hi,

I have a ASP NET CORE 5 Web App.

In a view I have a form with some input fields, one of this is a Rich Text Editor.

How can I save the model including the formatted text in the Rich Text Editor?

How can I retrieve the saved formatted text and show it in the form?

Substantially, how can I bind the rich text editor to a model including the formatted text field and other fields?

Thanks

 



3 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team May 1, 2024 08:38 AM UTC

Hi Maurizio Longo,


The RichTextEditorFor control can be rendered by passing values from the controller. The formatted Rich Text Editor value is retrieved when submitting the form using the post method. Please refer to the documentation and demos below,




Please let us know if it doesn't meet your requirements.

Regards,
Vinitha

Marked as answer

ML Maurizio Longo May 2, 2024 12:44 PM UTC

Thnak you Vinitha It works percfectly!



VJ Vinitha Jeyakumar Syncfusion Team May 3, 2024 05:20 AM UTC

Hi Maurizio Longo,


You are welcome.

Regards,
Vinitha

Loader.
Up arrow icon