Skip to content

Commit d46fda5

Browse files
committed
Fix lint errors
1 parent bc9355b commit d46fda5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal
238238
});
239239

240240
if (typeof this.initialValue === 'string') {
241-
editor.setContent(this.initialValue as string);
242-
if (editor.getContent() !== this.initialValue) {
243-
this.emitOnChange(editor);
244-
}
245-
if (this.onInitNgModel !== undefined) {
246-
this.onInitNgModel.emit(editor as unknown as EventObj<any>);
247-
}
241+
editor.setContent(this.initialValue as string);
242+
if (editor.getContent() !== this.initialValue) {
243+
this.emitOnChange(editor);
244+
}
245+
if (this.onInitNgModel !== undefined) {
246+
this.onInitNgModel.emit(editor as unknown as EventObj<any>);
247+
}
248248
}
249249
}
250250

tinymce-angular-component/src/main/ts/utils/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const listenTinyMCEEvent = (
2525
const bindHandlers = (ctx: EditorComponent, editor: any, destroy$: Subject<void>): void => {
2626
const allowedEvents = getValidEvents(ctx);
2727
allowedEvents.forEach((eventName) => {
28-
const eventEmitter: EventEmitter<any> = ctx[eventName]
28+
const eventEmitter: EventEmitter<any> = ctx[eventName];
2929

3030
listenTinyMCEEvent(editor, eventName.substring(2), destroy$).subscribe((event) => {
3131
// Caretaker note: We only emit if the event emitter is observed to avoid scheduling unnecessary change

0 commit comments

Comments
 (0)