Tony Drake


1,810 Experience
18 Lessons Completed
0 Questions Solved


Posted in 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

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.