Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Filters
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
The HTML Editor is not saving the code in the HTML Source when using Firefox. It works for IE7 though. What is happening is that when changing the font in Firefox, it shows visibly the changes, but does not save the code. When going back to view the entry, the entry does not show the chosen font. Also, Firefox shows different HTML code in the HTML Source than IE7. I was told that Moodle tries to clean up the HTML code and that is why it is not there when going back.
SOURCE CODE BEFORE SAVING THE ENTRY:
HTML Code in Firefox:
This is an example of using Trebuchet (Default) font.<br /><br /><span style="font-family: impact;">This is an example of using Impact font.</span><br />
HTML Code in IE7:
<p>This is an example of using Trebuchet (Default) font.</p>
<p><font face="impact">This is an example of using Impact Font.</font></p>
SOURCE CODE AFTER SAVING THE ENTRY
HTML Code in Firefox:
This is an example of using Trebuchet (Default) font.<br /><br /><span>This is an example of using Impact font.</span><br />
HTML Code in IE7:
<p>This is an example of using Trebuchet (Default) font.</p>
<p><font face="impact">This is an example of using Impact Font.</font></p>
NOTICE THAT THE FONT IS MISSING ON THE SOURCE CODE IN FIREFOX AFTER SAVED. ALSO NOTICE IT HAS DIFFERNT TYPE OF HTML CODING.
I have tried this on the Moodle Platform and it does not replicate the problem. Maybe it is due to my moodle being an older version: 1.9.1
this again is a problem caused by kses cleaning which does not understand CSS