CRM-17232 - Remove reference to undefined ck
authorColeman Watts <coleman@civicrm.org>
Tue, 29 Sep 2015 20:42:26 +0000 (16:42 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 29 Sep 2015 20:42:26 +0000 (16:42 -0400)
ang/crmUi.js

index f80ce39f18b6e6eafe391e89f4fb119d7e2f13d8..4e9afcfaada724dd47bd5c051f640bdd5720f3b2 100644 (file)
             });
           }
 
-          // CRM-16445 - When one inserts an image, none of these events seem to fire at the right time:
-          // afterCommandExec, afterInsertHtml, afterPaste, afterSetData, change, insertElement,
-          // insertHtml, insertText, pasteState. It seems that 'pasteState' is the general equivalent of
-          // what 'change' should be, except (in the case of image insertion) it fires too soon.
-          // The 'key' event is needed to detect changes in "Source" mode.
-          var debounce = null;
-          angular.forEach(['key', 'pasteState'], function(evName){
-            ck.on(evName, function(evt) {
-              $timeout.cancel(debounce);
-              debounce = $timeout(function() {
-                ngModel.$setViewValue(ck.getData());
-              }, 50);
-            });
-          });
-
           ngModel.$render = function(value) {
             CRM.wysiwyg.setVal(elm, ngModel.$viewValue);
           };