From 2875043ddf519c4dcd739ca4008ced0fe36d496e Mon Sep 17 00:00:00 2001 From: Antonia Hulha Date: Wed, 10 Aug 2016 11:02:44 +0200 Subject: [PATCH] Update model when editing in source mode #41 --- angular-ckeditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-ckeditor.js b/angular-ckeditor.js index 5b7af1e..ce4ae39 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', 'blur', 'saveSnapshot', 'key', 'paste', 'selectionChange'].forEach(function (event) { controller.onCKEvent(event, function syncView() { ngModelController.$setViewValue(controller.instance.getData() || ''); });