-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
4.2
-
MOODLE_402_STABLE
Inside a simple moodle text page (content element) I'm using a javascript with a callback function noted in the form of an arrow function that relies on having the string "=>" in unaltered form.
On loading the said text page the WYSIWYG editor inserts a blank in between to form "= >" effectively breaking the code.
Steps for reproduction:
- Create a text page inside a Moodle course.
- Open the source code view inside the HTML Editor and add (a Javascript containing the code string) "=>"
- Save
- Edit once more
- Find that the code has been changed to "= >"
Expected behaviour: Keep Javascript code in unaltered form "=>"
Observed behaviour: Code changed automatically to "= >" on loading a page into the editor
Versions affected: I had to select the current release version because the form forced me to do so. I cannot determine the version of the Moodle instance I use. None of the ways described in https://docs.moodle.org/402/en/Moodle_version is applicable since the footers have been changed not to contain the MoodleDocs links and I have neither admin nor console access to the server.