瀏覽代碼

Updated API docs. [skip ci]

Maciej Bukowski 6 年之前
父節點
當前提交
ad8ab57dba
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 4 4
      packages/ckeditor5-watchdog/docs/features/watchdog.md
  2. 2 2
      packages/ckeditor5-watchdog/src/watchdog.js

+ 4 - 4
packages/ckeditor5-watchdog/docs/features/watchdog.md

@@ -97,10 +97,10 @@ watchdog.editor;
 
 // The current state of the editor.
 // The editor might be in one of the following states:
-// * `initializing`
-// * `ready`
-// * `crashed`
-// * `crashedPermanently`
+// * `initializing` - before the first initialization, and after crashes, before the editor is ready.
+// * `ready` - a state when a user can interact with the editor
+// * `crashed` - a state when an error occurs - it quickly changes to `initializing` or `crashedPermanently` depending on how many and how frequency errors have been caught recently.
+// * `crashedPermanently` - a state when the watchdog stops reacting to errors and keeps the editor crashed.
 // This property is observable.
 watchdog.state;
 

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

@@ -46,9 +46,9 @@ export default class Watchdog {
 		 *
 		 * * `initializing` - before the first initialization, and after crashes, before the editor is ready.
 		 * * `ready` - a state when a user can interact with the editor
-		 * * `crashed` - a state when an error occurs - it quickly changes to `initializing` or `crashedPernamently`
+		 * * `crashed` - a state when an error occurs - it quickly changes to `initializing` or `crashedPermanently`
 		 * depending on how many and how frequency errors have been caught recently.
-		 * * `crashedPernamently` - a state when the watchdog stops reacting to errors and keeps the editor crashed.
+		 * * `crashedPermanently` - a state when the watchdog stops reacting to errors and keeps the editor crashed.
 		 *
 		 * @public
 		 * @observable