Moodle

HTML editor issue, what you see is NOT what you get

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Incomplete
  • Affects Version/s: 1.6.2
  • Fix Version/s: 2.0
  • Component/s: HTML Editor
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Often the HTML editor will show you one thing, but when you save your changes, the course will show something different. We have run into trouble with things not appearing as bolded when in the editor that do appear bolded when viewing the course. (See MDL-7374 issue).
This time it is when we are trying to put spaces after a line before typing on another line. We have resorted to writing incorrect HTML code to get it to look like we want it to.
I have attached screen shots of this issue. I'm just wondering why items look differently in the HTML editor than they do when viewing the course? And also, why does the HTML editor sometimes ignore (or interpret incorrectly) the HTML code entered manually.

I really appreciate any help you can provide. Thanks!

Issue Links

Activity

Hide
Sarah Meadus added a comment -

both issues with formatting using the HTML editor.

Show
Sarah Meadus added a comment - both issues with formatting using the HTML editor.
Hide
Mathieu Petit-Clair added a comment -

This could be more a theme issue than a html editor bug. One <br /> is clearly there - there is a line break. "<br />" isn't meant to control vertical spacing - you should use your theme's CSS for that.

There was no way to force HTMLArea to display its content using the site's theme. This is now (or will shortly be) fixed with TinyMCE, in cvs head (which will become Moodle 2.0).

Show
Mathieu Petit-Clair added a comment - This could be more a theme issue than a html editor bug. One <br /> is clearly there - there is a line break. "<br />" isn't meant to control vertical spacing - you should use your theme's CSS for that. There was no way to force HTMLArea to display its content using the site's theme. This is now (or will shortly be) fixed with TinyMCE, in cvs head (which will become Moodle 2.0).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: