diff --git a/src/angular-summernote.js b/src/angular-summernote.js index fb021e2..49b258c 100644 --- a/src/angular-summernote.js +++ b/src/angular-summernote.js @@ -71,6 +71,9 @@ angular.module('summernote', []) } this.activate = function(scope, element, ngModel) { + if ($attrs.disabled) { + element.summernote('disable'); + } var updateNgModel = function() { var newValue = element.summernote('code'); if (element.summernote('isEmpty')) { newValue = ''; }