From cffd1e454ebcf24ebafa18830e20ab8ef4f5c27e Mon Sep 17 00:00:00 2001 From: TaeHee Kim Date: Tue, 4 Jun 2013 17:42:11 +0900 Subject: [PATCH] feat(ui-ace): add readOnly option --- ui-ace.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui-ace.js b/ui-ace.js index b475b0a..fefd22b 100644 --- a/ui-ace.js +++ b/ui-ace.js @@ -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) {