angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
578 stars 172 forks source link

readonly attrs overwrite _editor.setReadOnly(true) in onLoad callback #67

Closed freshsun closed 9 years ago

freshsun commented 10 years ago
$attr.$observe('readonly') 
    attrs.$observe('readonly', function (value) {
          acee.setReadOnly(value === 'true');
 });

if readonly is not defined in attributes, it will return false, then overwrite _editor.setReadOnly(true) in onLoad callback in my case

douglasduteil commented 9 years ago

83 Must fix this

Following #74