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

TinyMCE: Editor cannot be loaded if the page contains a warning message

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE

      If the page contains a warning message (e.g. Deprecation, Undefined), TinyMCE editor cannot be loaded.

      The error message is

      Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode 

      Steps to replicate:

      1. Open user/editadvanced.php file.
      2. Add "echo $abc;" to line 41 (Just after the get_record().
      3. Login as admin.
      4. Navigate to User profile page.
      5. Turn on the Browser developer tool and switch to Console tab.
      6. Try to edit the profile.
      7. Verify the Text editor and Console error.

       

        1. error.png
          174 kB
          Huong Nguyen

            stevani.andolo@moodle.com Stevani Andolo
            huongn@moodle.com Huong Nguyen
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 28 minutes
                28m

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