How to use CodeMirror 6 with Ruby on Rails Discussion
Discussion for
How to use CodeMirror 6 with Ruby on Rails
Any reason why you're passing the initial value to set for the editor with Stimulus values instead of something like...
new EditorView({
doc: this.inputTarget.value
...
})
Wouldn't it be better to sync the fields only on form submit instead of doing it at every change in the editor field?