ndunand / moodle-qtype_matrix

Source code of https://moodle.org/plugins/qtype_matrix
2 stars 10 forks source link

Filters in feedback are not processed #67

Closed a-kempka closed 6 months ago

a-kempka commented 7 months ago

When inserting any text into an item's feedback the text does not seem to be processed by filters:

This is unexpected, since the feedback is formatted with an Atto Editor supplying options for formatting. This is inconsistent as TeX and filters work within the items' text or the question's description

minhduchoang195 commented 6 months ago

The main reason for this is that the feedback in the matrix question renderer (question/type/matrix/renderer.php) has not been reformulated so that the installed Moodle filters can recognize and process these texts. The short name and description of each line have been formatted by the format_text function, so these filters can be applied to short names and descriptions, but not to feedback.

I created the pull request 69 (https://github.com/ndunand/moodle-qtype_matrix/pull/69) to resolve this issue.

NicoAlexH commented 6 months ago

Fixed by #69, thank you @minhduchoang195 !