scniro / react-codemirror2

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

How remove the line from editor? #208

Open evgenij9241 opened 4 years ago

evgenij9241 commented 4 years ago

Hey, I have a problem with removing the line, I can't do it. I read a doc to codemirror but the function doesn't work.

removeLine(n) Remove the given line from the document.

I used this but nothing doesn't work editor.removeLine(1)