Attemptfeedback as html wysiwyg editor - #42
Conversation
ralferlebach
commented
Oct 10, 2024
* set up context earlier when adding a new instance * postprocessing attemptfeedback fields after submit for add and update
* changing field to editor * changing name to attemptfeedbackeditor * implementing data preprocessing for attemptfeedback data
|
@ralferlebach We should anticipate how the decision to enable/disable the custom feedback text will be made in the plugin's code. Currently, it looks into the field's text to check whether it contains anything. If so, it's a flag to display the custom feedback text. If it's empty, the plugin considers custom feedback is 'off'. Actually, such feature has already been considered by the plugin maintainer, but was postponed due to having more pressing concerns in the plugin development. It's still on the radar, and, perhaps, will follow immediately after the 3.0.0 release containing the custom CAT models functionality. Also, when providing a pull request, squash all commits into just one commit will all the changes. The commit should have a descriptive message following Moodle's code style regarding the commit message formatting. Regards |
|
Dear Vitaly, thank you for your detailed feedback and insightful thoughts on my PR. Please allow myself to investigate all aspects and come up with solutions until end of next week. As you wrote, a WYSIWYG solution for that field would improve your plugins user value, so I am deeply convinced personally, the gains will justify remaining efforts with ease. Will that be fine for you? Of course I will also keep an eye on compatibility with existing data and settings, if necessary by employing mechanisms in update.php, as by your wish. One important information I will need from you, when also addressing the aspect of output: are there any changes intended on the attempt's feedback pages yet? Will this be fine for you? Best regards PS: For the cat model of Wunderbyte, we need the moodle context created before the hook is called anyway. So this solution seems to hit two birds with one stone and benefit both projects at the same time. |
|
@ralferlebach One thing though, can you please elaborate on this -
Does that mean you need an extra parameter in the API, that is, a context instance? If yes, it's the right moment to include it in 3.0.0 now before it's released. |
|
@ralferlebach |