Moodle

HTML Editor in Firefox not saving code.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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

Activity

Hide
Petr Škoda (skodak) added a comment -

this again is a problem caused by kses cleaning which does not understand CSS

Show
Petr Škoda (skodak) added a comment - this again is a problem caused by kses cleaning which does not understand CSS
Hide
Paul Baumeister added a comment -

I tried switching on the HTML Purifier on the Experimental module in Moodle 1.9 and it works!
THanks Petr. Slava Bogu!

Show
Paul Baumeister added a comment - I tried switching on the HTML Purifier on the Experimental module in Moodle 1.9 and it works! THanks Petr. Slava Bogu!
Hide
Erik Hemdal added a comment -

This causes quite an issue for my students, who want to use a proportional font in most cases, but who want to change to a fixed width font for discussing snippets of code. Students who are affected are commenting how disappointed they are to face this issue.

Our installation considers Firefox to be a "supported" browser, indeed we're encouraged to use Firefox over IE. For students who are on Linux or Solaris (many of my students), IE7 is not an option. Please consider raising the priority if you can.

I can see the issue with Firefox on Solaris 10, and I can test using Mozilla if it would help isolate the cause.

Thanks!

Erik Hemdal

Show
Erik Hemdal added a comment - This causes quite an issue for my students, who want to use a proportional font in most cases, but who want to change to a fixed width font for discussing snippets of code. Students who are affected are commenting how disappointed they are to face this issue. Our installation considers Firefox to be a "supported" browser, indeed we're encouraged to use Firefox over IE. For students who are on Linux or Solaris (many of my students), IE7 is not an option. Please consider raising the priority if you can. I can see the issue with Firefox on Solaris 10, and I can test using Mozilla if it would help isolate the cause. Thanks! Erik Hemdal
Hide
Kathy Cannon (Brandeis Univ) added a comment -

We are using Moodle 1.8.5. We are finding that this is a new issue. Not a problem that occurred in our earlier 1.8 version.

Show
Kathy Cannon (Brandeis Univ) added a comment - We are using Moodle 1.8.5. We are finding that this is a new issue. Not a problem that occurred in our earlier 1.8 version.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Dates

  • Created:
    Updated:
    Resolved: