Cannot read property 'first' of undefined

Cannot read property ‘first’ of undefined
This error happen if you try to initialize CodeMIrror with non TEXTAREA parameter. Please, add checking type==‘textarea’ and show error message if no. It can economy some time for somebody : )
And thanks, for gread library.

I’m not interested in type-checking the values passed to CodeMirror. Doing so consistently would cause a blowup in code size, and make the code more awkward to work with.