title: Programmatically edit CodeMirror contents without access to object
body: <p>I'm using Selenium to run automated tests on a page which contains a CodeMirror editor. I don't have access to the object however I do have jQuery available. How can I edit the contents of the editor in such a way that CodeMirror recognises the change?</p>