Explorar el Código

Docs: Add plugin general docs.

Oskar Wróbel hace 7 años
padre
commit
5c880ccc83
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      packages/ckeditor5-core/src/pendingactions.js

+ 7 - 0
packages/ckeditor5-core/src/pendingactions.js

@@ -16,6 +16,13 @@ import Collection from '@ckeditor/ckeditor5-utils/src/collection';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 
 /**
+ * List of editor pending actions.
+ *
+ * Any asynchronous action that should be finished before the editor destroy (like file upload) should be registered
+ * in this plugin and removed after finish.
+ *
+ * This plugin listens to `window#beforeunload` event and displays browser prompt when a pending action is in progress.
+ *
  * @extends module:core/plugin~Plugin
  */
 export default class PendingActions extends Plugin {