New Discussion

Notifications

You’re not receiving notifications from this thread.

How to use CodeMirror 6 with Ruby on Rails Discussion

1
General

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?

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 89,621+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.