From cbf656b83a875362a15955a7d79354b95c5bf158 Mon Sep 17 00:00:00 2001 From: human-- Date: Mon, 30 May 2016 10:56:25 +0300 Subject: [PATCH] Update angular-ckeditor.js Add sync view on "input" event (without it for update model we need change focus, this cause problem with case when user focused on editor and then click on button like "send" where sends network request, and in result data sends and only then model updates on "change" event). --- angular-ckeditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-ckeditor.js b/angular-ckeditor.js index 5b7af1e..89dc077 100644 --- a/angular-ckeditor.js +++ b/angular-ckeditor.js @@ -41,7 +41,7 @@ // Initialize the editor content when it is ready. controller.ready().then(function initialize() { // Sync view on specific events. - ['dataReady', 'change', 'blur', 'saveSnapshot'].forEach(function (event) { + ['dataReady', 'change', 'input', 'blur', 'saveSnapshot'].forEach(function (event) { controller.onCKEvent(event, function syncView() { ngModelController.$setViewValue(controller.instance.getData() || ''); });