Hello, I want to know a way to a way to get the text insider the HTML editor in the Moodle 2.0+. I have searched a little bit in this forum but cannot find an answer.
In the Moodle 1.9, I can use the following code like
document.getElementsByName('questiontext')[0].value
to get the text inside the HTML editor. Surely, I have to switch on and off between the text mode for it to work properly. However, it does not work for the Moodle 2.0 and the content return by the above script is something like a class of tinymce. So, anyone know a way to get the text. Any help would be appreciated.