Unable to fetch Editor Contents


I am using the dhtmlxEditor in my form. I need to set the editor contents to a hidden field in the same form. I am using the below code to achieve this. but somehow i am unable to get the contents as expected.

... ...

Please suggest.


you need to call

document.getElementById(“issueDescription.addDesc”).value = editorE.getContent();

to set editor content to a field. And this method should be called when the editor is filled in with the desired content. In your sample the value is set before the editor is initialized.