We implemented a word editor in our APP using the SfDocumentEditorContaine but now we want one more advanced feature in this, we want that data autosave when the user enters in a word editor. Right now for data saving, users need to click on the Save button but now we want to save data automatically instead of clicking is this possible? if possible can you please share any samples?
We used below sample code for that
And for saving this word editor data we used the below code
public async void onItemClick(Syncfusion.Blazor.DocumentEditor.ClickEventArgs args, int position)
{
switch (args.Item.Id)
{
case "download":
SfDocumentEditor editordownlaod = containerList[position].DocumentEditor;
await editordownlaod.Save((string.Format("{0}-{1}",ID, "Summary")), FormatType.Docx);
break;
case "save":
SfDocumentEditor editor = containerList[position].DocumentEditor;
string base64Data = await editor.SaveAsBlob(FormatType.Docx);
byte[] data = Convert.FromBase64String(base64Data);
ReviewAnswers[0].Answer = data;
await SaveOnChange(ReviewAnswers[position]);
break;
}
}