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

Mathjax: Notify when we finish rendering all the equations

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • MDL-79042-master
    • Hide
      1. Navigate to an existing course, or create a new one
      2. From the "More" menu, choose "Filters"
      3. Ensure that:
        1. The MathJax filter is On
        2. The Tex filter is Off
      4. Create a new Forum with "Whole forum grading" enabled
      5. Create a forum post with content as follows (Use the HTML mode):

        \( \succeq \circ \div \pm \diamond \int_{a}^{b}{c} \iint_{a}^{b}{c} \left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right| \)
        

      6. Open the forum as teacher
      7. Open the browser dev tools and locate the "Console"
      8. Paste the following into the console:

        require(['core_filters/events'], (E) => {document.addEventListener(E.eventTypes.filterContentRenderingComplete, (e) => {
            window.console.log(e);
            window.console.log(e.detail.nodes);
            debugger;
        })})
        

      9. Press the "Grade users" button
      10. Navigate to the user that made the post
        1. Confirm that the debugger stopped in your browser dev tools
        2. Confirm that the console showed a CustomEvent an an Array of nodes
        3. Confirm that the array of Nodes included your MathJax node
      Show
      Navigate to an existing course, or create a new one From the "More" menu, choose "Filters" Ensure that: The MathJax filter is On The Tex filter is Off Create a new Forum with "Whole forum grading" enabled Create a forum post with content as follows (Use the HTML mode): \( \succeq \circ \div \pm \diamond \int_{a}^{b}{c} \iint_{a}^{b}{c} \left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right| \) Open the forum as teacher Open the browser dev tools and locate the "Console" Paste the following into the console: require(['core_filters/events'], (E) => {document.addEventListener(E.eventTypes.filterContentRenderingComplete, (e) => { window.console.log(e); window.console.log(e.detail.nodes); debugger; })}) Press the "Grade users" button Navigate to the user that made the post Confirm that the debugger stopped in your browser dev tools Confirm that the console showed a CustomEvent an an Array of nodes Confirm that the array of Nodes included your MathJax node

    Description

      Trigger the event when the mathjax is finished rendering all the equations on the page.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              vuvanhieu143 Hieu Vu
              Stevani Andolo Stevani Andolo
              Huong Nguyen Huong Nguyen
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 40 minutes
                  1h 40m

                  Clockify

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