Search code examples
linecodemirror

Codemirror - Get editor lines number


I'm trying to get the number of lines in the codemirror editor to check if the editor contains more or less rows then some minutes befor. Is there any method or function in codemirror to do so?


Solution

  • I used the function

    var lines = editor.lineCount();