Browse Source

Merge pull request #1743 from ckeditor/t/ckeditor5-autosave/24

Docs: Improved saving data guide. Part of the ckeditor/ckeditor5-autosave#24.
Piotr Jasiun 6 years ago
parent
commit
8e78a6d9ff
1 changed files with 14 additions and 0 deletions
  1. 14 0
      docs/builds/guides/integration/saving-data.md

+ 14 - 0
docs/builds/guides/integration/saving-data.md

@@ -154,6 +154,20 @@ It also listens to the native [`window#beforeunload`](https://developer.mozilla.
 
 This automatically secures you from the user leaving the page before the content is saved or some ongoing actions like image upload did not finish.
 
+The minimum time period between two save actions might be configured using the `config.waitingTime` property to not overload the backend. 1 second is the default waiting time before next save action if nothing has changed in the meantime after the editor data has changed.
+
+```js
+ClassicEditor
+	.create( document.querySelector( '#editor' ), {
+		autosave: {
+			waitingTime: 5000, // in ms
+			save( editor ) {}
+		},
+
+		// ... other configuration options
+	} );
+```
+
 ### Demo
 
 This demo shows a simple integration of the editor with a fake HTTP server (which needs 1000ms to save the content).