Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19396

htmlarea not working properly with IE8 - moodle v.1.8.9

    Details

    • 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)

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            gmilsted 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
            gmilsted 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.
            Hide
            poltawski Dan Poltawski added a comment -

            Hi,

            HTMLarea editor has been replaced by tinymce in 2.x.

            We are no longer supporting non-security bug fixes for 1.9 so I am closing this bug wont fix.

            Please upgrade to 2.x to get a fully supported working editor.

            Show
            poltawski Dan Poltawski added a comment - Hi, HTMLarea editor has been replaced by tinymce in 2.x. We are no longer supporting non-security bug fixes for 1.9 so I am closing this bug wont fix. Please upgrade to 2.x to get a fully supported working editor.

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: