Can AutoSave be disabled completely?

Hi

We don't want to use auto-save with RTE. The requirement is that the user needs to click a submit button to confirm the changes. 

According to the demo/docs:

  • If AutoSaveOnIdle is set to true, the content is saved if the editor is idle for the number of milliseconds specified in the SaveInterval property.
  • If AutoSaveOnIdle is set to false, the editor saves the content at the regular interval of milliseconds specified in the SaveInterval property."
Both these scenarios appear to be doing the same thing and suggest that AutoSaveOnIdle="false" does not prevent auto-save-on-idle at all.

How do I disable auto-save entirely, do I have to set a very large SaveInterval value?

Thanks

5 Replies

VJ Vinitha Jeyakumar Syncfusion Team October 7, 2025 10:08 AM UTC

Hi Paul,


To disable the autosave functionality in RichTextEditor, you can set the SaveInterval property to 0. This configuration prevents the ValueChange event from being triggered based on idle time. Instead, the event will only fire when the user explicitly moves focus away from the editor.

Please refer to the example below for implementation:

 <SfRichTextEditor   SaveInterval="0">
</SfRichTextEditor>


Regards,
Vinitha


PA Paul replied to Vinitha Jeyakumar October 9, 2025 07:53 PM UTC

Thanks for that.

I have another slight issue - I don't know if you've encountered if before.

When I edit the RTE contents and then move the mouse out, the update event does not fire until I click somewhere else on the page. If I move straight from the RTE to a submit button, I'm concerned that the submit will run before the RTE content is updated or that I have to click the button twice, which looks a bit clumsy.

Do you have any suggestions for how to deal with this scenario? I.e. make sure that the RTE update runs before the submit button can be clicked.

Thanks



VJ Vinitha Jeyakumar Syncfusion Team October 10, 2025 06:08 AM UTC

Hi Paul,


Please note that the ValueChange event is triggered immediately when the Editor loses focus. Therefore, if you click a button outside the Editor, the focus-out event will occur first, followed by the button's click event. As a result, the updated value from the Editor will be reliably available during the button's click event, ensuring smooth data handling.

Regards,
Vinitha


PA Paul October 10, 2025 04:11 PM UTC

Hi Vinitha

What you're saying might be true, but I've noticed that I have to click the submit button twice. It seems the first click is interrupted by the focus-out event. It works, but it isn't 'smooth'. It looks a bit clumsy.

I've been trying to implement a smooth workaround, but it seems it isn't possible.



VJ Vinitha Jeyakumar Syncfusion Team October 13, 2025 09:47 AM UTC

Hi Paul,


We’ve prepared a sample along with a video illustration demonstrating how the ValueChange event is triggered when the Editor loses focus upon clicking the submit button. On the very first button click, the Editor's value is successfully updated and retrieved. Please refer to the attached video for a detailed walkthrough of the process.


Regards,
Vinitha

Attachment: Sample_Video_(2)_e9eedd9f.zip

Loader.
Up arrow icon