Moodle

htmlarea not working properly with IE8 - moodle v.1.8.9

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.8.9
  • Fix Version/s: None
  • Component/s: HTML Editor
  • Affected Branches:
    MOODLE_18_STABLE

Description

Getting various error messages when using htmlarea in IE 8.

Following error occurs when clicking on a web page resource or link to a file (doesn't seem to occur when viewing activities):

Message: Class not registered
Line: 38
Char: 3
Code: 0
URI: http://moodle.capilanou.ca/course/view.php?id=1038&edit=1&sesskey=68WY1G26jZ

Following error occurs when updating a web page resource and clicking on the icon to insert web link:

Message: Class not registered
Line: 47
Char: 5
Code: 0
URI: http://moodle.capilanou.ca/lib/editor/htmlarea/dialog.js

Message: 'windowobj' is null or not an object
Line: 43
Char: 3
Code: 0
URI: http://moodle.capilanou.ca/mod/resource/view.php?id=73502

(attached error occurred when user tried to insert a web link in web page resource)

Activity

Hide
Greg Milsted added a comment -

Just to let you know our way around it was to edit

/lib/editor/htmlarea/htmlarea.php

line 1548 (on our build)

if((HTMLArea.is_ie ? attrname.length > 0 : attrname != null)) {

If changed to

if((HTMLArea.is_ie ? attrname : attrname != null)) {

Works. .length seems to throw an error on a null in ie8.

Hope that's some help to you.

Show
Greg Milsted added a comment - Just to let you know our way around it was to edit /lib/editor/htmlarea/htmlarea.php line 1548 (on our build) if((HTMLArea.is_ie ? attrname.length > 0 : attrname != null)) { If changed to if((HTMLArea.is_ie ? attrname : attrname != null)) { Works. .length seems to throw an error on a null in ie8. Hope that's some help to you.

People

Vote (5)
Watch (7)

Dates

  • Created:
    Updated: