22import { isPlatformBrowser , CommonModule } from '@angular/common' ;
33import {
44 AfterViewInit ,
5+ ChangeDetectionStrategy ,
6+ ChangeDetectorRef ,
57 Component ,
68 ElementRef ,
79 forwardRef ,
810 Inject ,
11+ InjectionToken ,
912 Input ,
1013 OnDestroy ,
11- PLATFORM_ID ,
12- InjectionToken ,
1314 Optional ,
14- ChangeDetectorRef ,
15- ChangeDetectionStrategy
15+ PLATFORM_ID ,
1616} from '@angular/core' ;
1717import { FormsModule , ControlValueAccessor , NG_VALUE_ACCESSOR } from '@angular/forms' ;
1818import { Subject , takeUntil } from 'rxjs' ;
@@ -96,8 +96,6 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal
9696 return this . _editor ;
9797 }
9898
99- // public ngZone: NgZone;
100-
10199 private _elementRef : ElementRef ;
102100 private _element ?: HTMLElement ;
103101 private _disabled ?: boolean ;
@@ -111,14 +109,12 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal
111109
112110 public constructor (
113111 elementRef : ElementRef ,
114- // ngZone: NgZone,
115112 private cdRef : ChangeDetectorRef ,
116113 @Inject ( PLATFORM_ID ) private platformId : object ,
117114 @Optional ( ) @Inject ( TINYMCE_SCRIPT_SRC ) private tinymceScriptSrc ?: string
118115 ) {
119116 super ( ) ;
120117 this . _elementRef = elementRef ;
121- // this.ngZone = ngZone;
122118 }
123119
124120 public writeValue ( value : string | null ) : void {
@@ -221,9 +217,7 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal
221217 this . _element . style . visibility = '' ;
222218 }
223219
224- // this.ngZone.runOutsideAngular(() => {
225220 getTinymce ( ) . init ( finalInit ) ;
226- // });
227221 } ;
228222
229223 private getScriptSrc ( ) {
0 commit comments