1
I need to get the content of the text typed into the WYSIWYG editor fields with javascript on submission. One should mean that you get it with getElementById
le="color: #000000"><?php this.addFileParam(file.id, 'description', document.getElementById("description").value);
but this does not work - the value is always empty.
Instead I have to get it (for tinyMCE) with:
le="color: #000000"><?php this.addFileParam(file.id, 'description', tinyMCE.get('description').getContent());
In CKeditor I have to use another code, for Koivi I don't have a clue. So my question is: is there any code I can use for ALL editors?