I would like to perform a background save function while one is typing inside the rich text editor.
For example while the user is typing continuously i want to perform a background save every 5 minutes.
I wrote the following code for performing the save after a time interval.
public timeOut(): void {
setTimeout(() => {
this.saveData();
}, 3000);
}
I would like to know where to implement this function inside the editor.
Thanks in advance.