I've set the editor to read only and it is read only but it is showing a cursor. I'd like to programmatically hide the cursor (not through a style unless programmatically).
Here's what suggested answers do, for visual comparison:
Here's what it looked like before:
adding:
editor.setOptions({readOnly: true, highlightActiveLine: false, highlightGutterLine: false});
as suggested by "a user", removes the gutter and line highlight, but the cursor is still there:
then adding the line:
editor.renderer.$cursorLayer.element.style.display = "none"
as suggested by "daronwolff" removes the cursor:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With