BertrandBev / code_field

A customizable code text field supporting syntax highlighting
https://bertrandbev.github.io/code_field/
MIT License
232 stars 61 forks source link

CodeField read only #14

Closed Mythar closed 3 years ago

Mythar commented 3 years ago

Very nice editor! Would be nice to have a readOnly option in the CodeField and a onTextChanged callback.

BertrandBev commented 3 years ago

I added an enabled flag in b58f58c6, and onChanged callback b897bcbb8

leoshusar commented 2 years ago

Would be nice to have the actual readOnly option, because enabled: false does not let you select the text. Using readOnly the text is still selectable.