Issue Details (XML | Word | Printable)

Key: MDL-11402
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Mathieu Petit-Clair
Reporter: Eloy Lafuente (stronk7)
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 22/Sep/07 06:13 PM   Updated: 23/Dec/08 07:18 PM
Component/s: HTML Editor
Affects Version/s: 1.8.2, 1.9
Fix Version/s: 2.0

File Attachments: None
Image Attachments:

1. editor_html.PNG
(19 kB)
Environment: Internet Explorer

Database: Any
Participants: Eloy Lafuente (stronk7), Martin Dougiamas, Mathieu Gueurce, Mathieu Petit-Clair, Michael Woods and Petr Škoda (skodak)
Security Level: None
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda (skodak) added a comment - 24/Sep/07 07:17 PM
which theme, OS, browser version?

Michael Woods added a comment - 09/Nov/07 01:01 PM
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?

Mathieu Petit-Clair added a comment - 22/Nov/07 01:48 PM
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.

Martin Dougiamas added a comment - 26/Feb/08 03:53 PM
Pushing to the new editor in 2.0

Mathieu Gueurce added a comment - 23/Dec/08 07:18 PM
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;