-
Bug
-
Resolution: Fixed
-
Minor
-
3.4, 3.5.1
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
wip-nolink-bug
-
It can happens that the <span class="nolink"> inserted by the HTML editor is changed adding some other attributes, like the style one:
<span style="color:red;" class="nolink">SOME WORDS</span>
This should be the output of a re-edit of a page or some contents or heading of a resource, when the user apply the nolink to a styled paragraph or applying the style to a nolink span.
In this case the nolink is ignored and the words inside the span are linked to the glossary, despite of the nolink definition.
I found that modifying the search pattern into lib/filterlib.php this can easily solved and the small changes are here:
https://gitlab.di.unito.it/rabellino/moodle/tree/wip-nolink-bug
Hope this helps.