scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

markText readOnly line now working #227

Open johnnytolengo opened 3 years ago

johnnytolengo commented 3 years ago

any idea why does not working?

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