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);

but I cannot do the same to an editor window due to the way Joomla renders it. Any attempt to access the elements results in javascript saying Uncaught TypeError.

I read that


would work but it doesn't update the form.

Any thoughts?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.