scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.66k stars 193 forks source link

How to Set Lines Range as readonly ? #193

Closed staticle closed 1 year ago

johnnytolengo commented 3 years ago

not worked for me:

editor.markText({line: 0, ch: 0}, {line: 0, ch: 26}, { readOnly:true});