Many thanks for this track, Justin, I will have a try from there.
Zabelle
Many thanks for this track, Justin, I will have a try from there.
Zabelle
Hello,
Here are the news from my plugin development : I was able to produce a copy of the assignment online text feedback with a customized version of the Atto editor.
I found the solution here :
https://moodle.org/mod/forum/discuss.php?d=380163
I also added a simple command line to put the assignment text as default text in the comment field in get_form_elements_for_user function in locallib.php line 318.
$editor_toolbar = <<<EOT
collapse = collapse
style1 = writeup,html
EOT;
$usertext = $this->convert_submission_text_to_feedback($submission, $data);
$mform->addElement('editor', 'assignfeedbackwriteup_editor', $this->get_name(), null, array('atto:toolbar' => $editor_toolbar, 'autosave' => true))->setValue( array('text' => "$usertext") );
And I will finally derive this Atto plugin that does a big part of the job :
https://moodle.org/plugins/atto_corrections
I had some modifications on this plugin that seems to use YUI but I do not find how to proceed to generate the build files based on changes in src. Do I have to use Grunt as suggested here ?
https://docs.moodle.org/dev/Grunt
Great thanks for help.
Zabelle
I had a try with Grunt commands and it works !
Everything is fine !