Merge pull request #24063 from eileenmcnaughton/msg_breakdown
[civicrm-core.git] / ang / crmMonaco.js
index 3d6ff667f4c0f81d43cfad3ca013d9c2911778e7..6a451b0a637aefb5e0ba8ff590ef67386cc69f1e 100644 (file)
             // FIXME: else: retry?
           };
 
+          if ($attr.ngDisabled) {
+            $scope.$watch($parse($attr.ngDisabled), function(disabled){
+              editor.updateOptions({readOnly: disabled});
+            });
+          }
+
           // FIXME: This makes vertical scrolling much better, but horizontal is still weird.
           var origOverflow;
           function bodyScrollSuspend() {