Skip to content

Commit bc9355b

Browse files
committed
Clean up
1 parent 199d9b5 commit bc9355b

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

tinymce-angular-component/src/main/ts/editor/editor.component.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
import { isPlatformBrowser, CommonModule } from '@angular/common';
33
import {
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';
1717
import { FormsModule, ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
1818
import { 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() {

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13914,8 +13914,3 @@ zone.js@~0.10.3:
1391413914
version "0.10.3"
1391513915
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.10.3.tgz#3e5e4da03c607c9dcd92e37dd35687a14a140c16"
1391613916
integrity sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==
13917-
13918-
zone.js@~0.16.0:
13919-
version "0.16.0"
13920-
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.16.0.tgz#955b9e28846d76ca2ef7091c8f9e96f35f79e828"
13921-
integrity sha512-LqLPpIQANebrlxY6jKcYKdgN5DTXyyHAKnnWWjE5pPfEQ4n7j5zn7mOEEpwNZVKGqx3kKKmvplEmoBrvpgROTA==

0 commit comments

Comments
 (0)