jlb224 / moodle-mod_notetaker

Notetaker plugin for Moodle - allows students to take public or private notes within a course.
https://jlb224.github.io/moodle-mod_notetaker/
Other
2 stars 4 forks source link

Note field format is ignored #14

Open mudrd8mz opened 3 years ago

mudrd8mz commented 3 years ago

Steps to reproduce:

  1. Go to your user preferences and select "Plain textarea" as your preferred editor.
  2. When adding a new note, choose "Markdown" as the note format
  3. Use some Markdown syntax formatting in the note

Solution: When calling format_text() in viewnote.php, the selected format must be also passed:

$messagetext = format_text($messagetext, $result->notefieldformat);
mudrd8mz commented 3 years ago

Also in classes/local/utilities.php where the FORMAT_HTML is hard-coded.

mudrd8mz commented 3 years ago

... and actually other places where format_text() is called.