X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=public%2Fbower_components%2Fangular-ckeditor%2Fangular-ckeditor.js;h=b7081bc70d10d04644e17e226427fd25dfaea3cc;hb=221ba7c2ffc043570bbad1e8f0d6074fb4ff1fb0;hp=5b7af1ec4233c06aa05ba68b4e60a7d8f95dbe3f;hpb=5d92478b1cb7479f39a43973775a6f6147fba8ac;p=motion.git diff --git a/public/bower_components/angular-ckeditor/angular-ckeditor.js b/public/bower_components/angular-ckeditor/angular-ckeditor.js index 5b7af1e..b7081bc 100644 --- a/public/bower_components/angular-ckeditor/angular-ckeditor.js +++ b/public/bower_components/angular-ckeditor/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', 'selectionChange', 'paste'].forEach(function (event) { controller.onCKEvent(event, function syncView() { ngModelController.$setViewValue(controller.instance.getData() || ''); }); @@ -55,7 +55,7 @@ // Defer the ready handler calling to ensure that the editor is // completely ready and populated with data. setImmediate(function () { - $parse(attrs.ready)(scope); + $parse(attrs.ready)(scope, {$instance: controller.instance}); }); });