8
0
Maciej Bukowski 6 лет назад
Родитель
Сommit
454b926ffa

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

@@ -44,7 +44,7 @@ import areConnectedThroughProperties from '@ckeditor/ckeditor5-utils/src/areconn
  *
  *
  * Other important APIs:
  * Other important APIs:
  *
  *
- *		watchdog.on( 'crash', () => { console.log( 'Editor crashed.' ) } );
+ *		watchdog.on( 'error', () => { console.log( 'Editor crashed.' ) } );
  *		watchdog.on( 'restart', () => { console.log( 'Editor was restarted.' ) } );
  *		watchdog.on( 'restart', () => { console.log( 'Editor was restarted.' ) } );
  *
  *
  *		watchdog.restart(); // Restarts the editor.
  *		watchdog.restart(); // Restarts the editor.

+ 2 - 2
packages/ckeditor5-watchdog/tests/manual/watchdog.js

@@ -45,7 +45,7 @@ watchdog1.create( firstEditorElement, editorConfig ).then( () => {
 	} );
 	} );
 } );
 } );
 
 
-watchdog1.on( 'crash', () => {
+watchdog1.on( 'error', () => {
 	console.log( 'First editor crashed!' );
 	console.log( 'First editor crashed!' );
 } );
 } );
 
 
@@ -65,7 +65,7 @@ watchdog2.create( secondEditorElement, editorConfig ).then( () => {
 	} );
 	} );
 } );
 } );
 
 
-watchdog2.on( 'crash', () => {
+watchdog2.on( 'error', () => {
 	console.log( 'Second editor crashed!' );
 	console.log( 'Second editor crashed!' );
 } );
 } );