Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
feat(ui-ace): add readOnly option
Browse files Browse the repository at this point in the history
  • Loading branch information
rotoshine authored and douglasduteil committed Dec 14, 2013
1 parent bbae258 commit cffd1e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui-ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ angular.module('ui.ace', [])
session.setMode("ace/mode/" + opts.mode);
}


if (angular.isDefined(opts.readOnly)) {
acee.setReadOnly(opts.readOnly);
}

// Value Blind
if (angular.isDefined(ngModel)) {
ngModel.$formatters.push(function (value) {
Expand Down

0 comments on commit cffd1e4

Please sign in to comment.