Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.1, 2.8.6, 2.9, 3.0
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-48467-master -
Description
I'll set the scene, on my course page, i'm editing a section description.
I've noticed that when i switch to the HTML code mode in the Atto HTML editor moodle is allowing me to save the following code
<body style="background-color: #336699"></body>
|
Furthermore moodle is then saving this inline style and putting it on the body tag of the page which results in the whole page turning the above color.
Then when i go to edit the same section description again the above code is removed by the Atto HTML editor and in order for me to remove the colour i need to add the following code
<body style=""></body>
|
Perhaps Moodle needs to sanitise what is getting pushed back from the text editors or the Atto HTML editor needs to be changed so it doesn't allow certain tags.
Attachments
Issue Links
- has been marked as being related by
-
MDL-48225 Topic becomes un-editable when incomplete style attribute used in html on topic description
-
- Closed
-