Benjamin Hargett


110 Experience
1 Lesson Completed
0 Questions Solved


Hey John, I had the same issue. Maybe try this out when you are setting the selected range?

this.editor.setSelectedRange([position - endPos + startPos, position + 1]);
logo Created with Sketch.

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

© 2022 GoRails, LLC. All rights reserved.