marijnh/CodeMirror2 — Issue #381: OnChange Save() 
Author: SeBuDesign
Created: 2012-02-21 10:39:22+00:00
State: open

Hi,

I can't figure out what i am doing wrong. Firebug doesn't give an error but when i change the text in the codemirror editor it won't put it in the hidden textarea.

```javascript
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
mode: "mustache",
lineNumbers: true,
lineWrapping: true,
electricChars: false,
onChange: function(){editor.save()},
onCursorActivity: function() {
editor.setLineClass(hlLine, null);
hlLine = editor.setLineClass(editor.getCursor().line, "activeline");
}
});
```
Why doesn't the text from de codemirror editor go to the hidden textarea?