From 1784613259e07ec61f1f293db0b7e66489986b6d Mon Sep 17 00:00:00 2001 From: GovardhanCel Date: Fri, 29 Nov 2019 17:05:00 +0530 Subject: [PATCH 1/2] #1823 --- src/editor/editor.directive.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor/editor.directive.ts b/src/editor/editor.directive.ts index e3a1310..f638e33 100644 --- a/src/editor/editor.directive.ts +++ b/src/editor/editor.directive.ts @@ -174,9 +174,10 @@ export class FroalaEditorDirective implements ControlValueAccessor { if (this._editor.events) { // bind contentChange and keyup event to froalaModel this._editor.events.on('contentChanged', function () { - setTimeout(function () { + // Commented settimeout for https://github.com/froala-labs/froala-editor-js-2/issues/1823 + // setTimeout(function () { self.updateModel(); - }, 0); + // }, 0); }); this._editor.events.on('mousedown', function () { setTimeout(function () { From 12be3673f5accbfd3640df07ba6e7633ba29e422 Mon Sep 17 00:00:00 2001 From: GovardhanCel Date: Fri, 29 Nov 2019 17:09:44 +0530 Subject: [PATCH 2/2] Indentation changes --- src/editor/editor.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/editor.directive.ts b/src/editor/editor.directive.ts index f638e33..ad83b3e 100644 --- a/src/editor/editor.directive.ts +++ b/src/editor/editor.directive.ts @@ -174,9 +174,9 @@ export class FroalaEditorDirective implements ControlValueAccessor { if (this._editor.events) { // bind contentChange and keyup event to froalaModel this._editor.events.on('contentChanged', function () { - // Commented settimeout for https://github.com/froala-labs/froala-editor-js-2/issues/1823 + // Commented settimeout for https://github.com/froala-labs/froala-editor-js-2/issues/1823 // setTimeout(function () { - self.updateModel(); + self.updateModel(); // }, 0); }); this._editor.events.on('mousedown', function () {