I have a form with lots of fields including editor fields that display using jce/codemirror. I have buttons that call the submitbutton.js which builds a string from other elements in the form. I can use a function to update the text field by using
document.getElementById('jform_title').value = com_title.concat(', ', com_version, ', ', com_exploit);
I read that
would work but it doesn't update the form.