yabab-dev / ng2-codemirror

Angular2 CodeMirror component
MIT License
70 stars 30 forks source link

Implemented setDisabledState method to support disable #38

Open elvinmeza opened 6 years ago

elvinmeza commented 6 years ago

Currently the control doesn't implement this method of the ControlValueAccesor, so specifying disabled: true when creating the form group or calling the enable() or disable() method from the control have no effect. The only way to achieve it was to set the option readOnly of the Codemirror config directly.