@@ -28,8 +28,8 @@ import type {
2828 Editor ,
2929 EditorConfig ,
3030 GetEventInfo ,
31- DocumentChangeEvent ,
32- EditorCreatorFunction ,
31+ ModelDocumentChangeEvent ,
32+ EditorWatchdogCreatorFunction ,
3333 ViewDocumentBlurEvent ,
3434 ViewDocumentFocusEvent
3535} from 'ckeditor5' ;
@@ -51,7 +51,7 @@ export interface FocusEvent<TEditor extends Editor = Editor> {
5151}
5252
5353export interface ChangeEvent < TEditor extends Editor = Editor > {
54- event : GetEventInfo < DocumentChangeEvent > ;
54+ event : GetEventInfo < ModelDocumentChangeEvent > ;
5555 editor : TEditor ;
5656}
5757
@@ -358,7 +358,7 @@ export class CKEditorComponent<TEditor extends Editor = Editor> implements After
358358 */
359359 private attachToWatchdog ( ) {
360360 // TODO: elementOrData parameter type can be simplified to HTMLElemen after templated Watchdog will be released.
361- const creator : EditorCreatorFunction < TEditor > = ( ( elementOrData , config ) => {
361+ const creator : EditorWatchdogCreatorFunction < TEditor > = ( ( elementOrData , config ) => {
362362 return this . ngZone . runOutsideAngular ( async ( ) => {
363363 this . elementRef . nativeElement . appendChild ( elementOrData as HTMLElement ) ;
364364
@@ -467,7 +467,7 @@ export class CKEditorComponent<TEditor extends Editor = Editor> implements After
467467 const modelDocument = editor . model . document ;
468468 const viewDocument = editor . editing . view . document ;
469469
470- modelDocument . on < DocumentChangeEvent > ( 'change:data' , evt => {
470+ modelDocument . on < ModelDocumentChangeEvent > ( 'change:data' , evt => {
471471 this . ngZone . run ( ( ) => {
472472 if ( this . disableTwoWayDataBinding ) {
473473 return ;
0 commit comments