Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to use CodeMirror 6 with Ruby on Rails Discussion

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
...
})

Reply

Wouldn't it be better to sync the fields only on form submit instead of doing it at every change in the editor field?

Reply
Join the discussion
Create an account Log in

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

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

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