Moodle

HTML Editor, under IE, in HTML mode, displays incorrectly...

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8.2, 1.9
  • Fix Version/s: 2.0.8
  • Component/s: HTML Editor
  • Labels:
    None
  • Environment:
    Internet Explorer
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

The HTML editor, when pressing the "<>" (HTML mode) button, shows HTML contents without the first letter of each line. Switching abck to Editor mode doesn't cause data loss, but it's really annoying and can cause wrong manual tags to be inserted.

Example attached. Not sure if this is a CSS thing or what.

Ciao

Activity

Hide
Petr Škoda (skodak) added a comment -

which theme, OS, browser version?

Show
Petr Škoda (skodak) added a comment - which theme, OS, browser version?
Hide
Michael Woods added a comment -

I'm experiencing it in 1.8.2, only in IE6, on Windows XP Pro, using a modified version of the 'Serenity' theme. Any ideas how to resolve this?

Show
Michael Woods added a comment - I'm experiencing it in 1.8.2, only in IE6, on Windows XP Pro, using a modified version of the 'Serenity' theme. Any ideas how to resolve this?
Hide
Mathieu Petit-Clair added a comment -

The bug seems to be that the scrollbar always shows on IE, and that the iframe width calculations don't change when the mode changes from wysiwyg to textmode. No idea how to fix that without spending (a lot of) time hacking in htmlarea css sheet. Imho, this time would be better spent upgrading to a newer (and still supported) editor.

Show
Mathieu Petit-Clair added a comment - The bug seems to be that the scrollbar always shows on IE, and that the iframe width calculations don't change when the mode changes from wysiwyg to textmode. No idea how to fix that without spending (a lot of) time hacking in htmlarea css sheet. Imho, this time would be better spent upgrading to a newer (and still supported) editor.
Hide
Martin Dougiamas added a comment -

Pushing to the new editor in 2.0

Show
Martin Dougiamas added a comment - Pushing to the new editor in 2.0
Hide
Mathieu Gueurce added a comment -

To fix this bug on IE 6, just add this line

textarea.style.marginLeft = "0px";

in this part of the htmlarea.php file: (close to the line 828, with moodle 1.9.2)

// the editor including the toolbar now have the same size as the
// original textarea.. which means that we need to reduce that a bit.
textarea.style.marginLeft = "0px";
textarea.style.width = iframe.style.width;
textarea.style.height = iframe.style.height;

Show
Mathieu Gueurce added a comment - To fix this bug on IE 6, just add this line textarea.style.marginLeft = "0px"; in this part of the htmlarea.php file: (close to the line 828, with moodle 1.9.2) // the editor including the toolbar now have the same size as the // original textarea.. which means that we need to reduce that a bit. textarea.style.marginLeft = "0px"; textarea.style.width = iframe.style.width; textarea.style.height = iframe.style.height;

Dates

  • Created:
    Updated: