8
0
Maciej Bukowski 7 лет назад
Родитель
Сommit
600a06148e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-autosave/src/autosave.js

+ 2 - 2
packages/ckeditor5-autosave/src/autosave.js

@@ -33,7 +33,7 @@ import throttle from './throttle';
  *					save() {
  *					save() {
  *						const data = editor.getData();
  *						const data = editor.getData();
  *
  *
- *						// Note: saveEditorsContentToDatabase function might be async and return a promise to the saving action.
+ *						// Note: saveEditorsContentToDatabase function should return a promise to the saving action.
  *						return saveEditorsContentToDatabase( data );
  *						return saveEditorsContentToDatabase( data );
  *					}
  *					}
  *				};
  *				};
@@ -228,7 +228,7 @@ export default class Autosave extends Plugin {
  */
  */
 
 
 /**
 /**
- * Method that will be called when the data model changes. It might return a promise (e.g. in case of saving content to the database),
+ * Method that will be called when the data model changes. It should return a promise (e.g. in case of saving content to the database),
  * so the `Autosave` plugin will wait for that action before removing it from the pending actions.
  * so the `Autosave` plugin will wait for that action before removing it from the pending actions.
  *
  *
  * @method #save
  * @method #save