Persistent text in essay questions

Persistent text in essay questions

by Noam Campbell -
Number of replies: 3

Hi there,


at the moment we use Moodle 4.0. In a lesson we added an essay query. So the students   can type in free text in the Atto editor the essay question. However when the student navigates further and then comes back to the site with the essay question type, the text of the input of the student is lost. Is there a chance to let student see his/her own input in the Attoeditor persistently ?  ... Via Javascript, DB Query, other Plugin editor etc.  other ideas ?

Thanks for your answer!

Best,

Noam


Average of ratings: -
In reply to Noam Campbell

Re: Persistent text in essay questions

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Noam "... However when the student navigates further and then comes back to the site with the essay question type, the text of the input of the student is lost."

This is quite normal. Upon leaving the Essay question in the lesson (without saving it), the browser usually issues a warning like this one:

This has nothing to do with the Lesson activity itself, and there is no way to change this behaviour.

In reply to Noam Campbell

Re: Persistent text in essay questions

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Noam,

It's child's play, I would say, to do that with a very small script. Just use web storage.
In reply to Noam Campbell

Re: Persistent text in essay questions

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Noam,

Below is a more appropriate answer to your question.

"Text typed into the Atto editor is automatically saved if you leave the page." See Atto editor / Autosave ↗ for details.

"The default of 60 seconds may be changed by the administrator in Site administration>Plugins>Text editors>Atto HTML editor>Atto toolbar settings." The "Autosave frequency" setting is at the very bottom of this page. If you set it to say 1 second, the text in the editor will be saved almost continuously.