Hi Jose,
Greetings from Syncfusion support,
Query : “I need to implement autosave in rte, could you help me with some example?”
We have validated your reported query. Yes, you can autosave the values in the Rich Text Editor by configuring the AutoSaveOnIdle and SaveInterval property. Based on the time interval specified, for the SaveInterval property the ValueChange event will be triggered. Check the below sample for reference
Index.razor
|
@using Syncfusion.Blazor.RichTextEditor
<SfRichTextEditor @ref="RteObj" AutoSaveOnIdle="true" SaveInterval=15000>
<RichTextEditorEvents ValueChange="@onChanged"></RichTextEditorEvents>
<p>Rich Text Editor allows to insert images from online source as well as local computer where you want to insert the image in your content.</p>
<p><b>Get started Quick Toolbar to click on the image</b></p>
<p>It is possible to add custom style on the selected image inside the Rich Text Editor through quick toolbar.</p>
</SfRichTextEditor>
@code {
SfRichTextEditor RteObj;
public void onChanged()
{
System.Diagnostics.Debug.WriteLine(this.RteObj.Value);
}
}
|
Please let us know if the solution helps,
Regards,
Indrajith