The fromTextArea() constructor ignores the “value” slot. This is not in the documentation.
The fromTextArea() code I have starts:
CodeMirror.fromTextArea = function(textarea, options) {
options = options ? copyObj(options) : {};
options.value = textarea.value;
[...]
This is fine, but it would’ve saved me some time if it were documented that way. Or you could change it, either way.
Thanks!