materiahq / ngx-monaco-editor

Monaco Editor Library for Angular v6 and above
MIT License
159 stars 35 forks source link

feat: update readOnly of editor when options input changing #9

Closed batnyu closed 5 years ago

batnyu commented 5 years ago

Hello!

For a project, I need to update the readOnly option without having to re-instantiate the editor. So I added a condition in the ngOnChanges() hook to update it.

Thanks again for your work on this project!

jmarc-roy commented 5 years ago

Thanks again for your contribution @batnyu! Available in v2.0.6!