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

Atto console error when editor element is a required field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.4 regressions
    • Text editor Atto

      Hello team.

      We would like to report an undesired behavior when a question is created and a question text is not added, which is a required field.

      In version 4.3 this does not happen and looking at other reports it may be related to the following:

      Attached are two videos where this behavior can be observed. In the video1 you can see how it behaves with the Tiny editor active and in the video2 we used the Atto editor, editor that shows a JavaScript error.

      Steps to replicate:

      • Create a course
      • Create a quiz
      • Go to add question and add a new question Essay type
      • Go down and save the question
      • Page will go up to the Question Name since is mandatory
      • Add a Name to that question and go down to save the question
      • No automatic scrolling will happen and if you use the Atto editor you will see an error in the console as the Question Text field is mandatory.

      Thanks team for evaluating possible solutions to this behavior.

      Update: This is not an issue that is specific to question creation. Any Atto editor that is required will exhibit the console error. Take, as another example, the report building scheduling form. This results in a console error. This issue will deal with the Atto console error only.

      Uncaught TypeError: element.scrollIntoView is not a function 

      See also the linked issue which deals with a similar thing in TinyMCE, albeit without the console error. These may be related.

        1. video1.mov
          16.32 MB
        2. video2.mp4
          4.49 MB

            Unassigned Unassigned
            drobayo Dagoberto Robayo
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.