Persistent text in essay questions

Persistent text in essay questions

Noam Campbell -
回帖数: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


回复Noam Campbell

Re: Persistent text in essay questions

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 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.

回复Noam Campbell

Re: Persistent text in essay questions

Dominique Bauer -
Documentation writers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像
Hello Noam,

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

Re: Persistent text in essay questions

Dominique Bauer -
Documentation writers的头像 Particularly helpful Moodlers的头像 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.