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

TinyMCE: Quiz question preview slowed down by autosave restore

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Text editor TinyMCE
    • None
    • MOODLE_405_STABLE

      I tried to expend the plugin tiny_wordlimit to also show the wordlimit indicator on the preview of quiz questions (PullRequest). While writing behat tests I discovered that the autosave seems to slow the page down, though it is not needed at all in this case.

      001 Scenario: Display maximum wordlimit in essay question preview # /var/www/html/moodle/lib/editor/tiny/plugins/wordlimit/tests/behat/wordlimit.feature:97
            And I wait "20" seconds                                     # /var/www/html/moodle/lib/editor/tiny/plugins/wordlimit/tests/behat/wordlimit.feature:122
              Exception: Javascript code and/or AJAX requests are not ready after 30 seconds. There is a Javascript error or the code is extremely slow (random67f3a990e23ab6:tiny_autosave/repository:resumeAutosaveSession). If you are using a slow machine, consider setting $CFG->behat_increasetimeout. in /var/www/html/moodle/lib/behat/classes/behat_session_trait.php:897
      

            Unassigned Unassigned
            linos André Menrath
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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