codemirror get value

JavaScript
editor.getValue()
Source

Also in JavaScript: