Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3822

Disable click in links in MathJax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Login as teacher in the site specified in the comments (restricted).
      2. Open the quiz "Prueba Diagnóstica de Conocimientos de Matemáticas".
      3. In the first question, check that clicking the MathJax correctly changes the selected option and it doesn't open the browser.
      Show
      This issue only needs to be tested in 1 device. Login as teacher in the site specified in the comments (restricted). Open the quiz "Prueba Diagnóstica de Conocimientos de Matemáticas". In the first question, check that clicking the MathJax correctly changes the selected option and it doesn't open the browser.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      In one of our BMA sites, the MathJax preview contains a link with an image inside. Clicking this link opens the system browser:

      <span class="MathJax_Preview">
          <a href="MYSITE/filter/tex/displaytex.php?texexp=...">
              <img class="texrender" src="MYSITE/filter/tex/pix.php/cf7450a1710cca59933a2309a53dfc83.gif" />
          </a>
      </span>

      In web, this content is removed and replaced by an HTML version of the equation (using svg and so on). I don't know why it doesn't happen the same in the app, in theory we apply the MathJax library to the content but it does nothing. Maybe it's because of some configuration in the site, in our testing sites the app receives the original MathJax content, not an image, and it is replaced by an HTML version of the equation.

      As a workaround we decided to disable clicks in links in MathJax.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Pau Ferrer Pau Ferrer
            Tester:
            Isabel Renedo Rouco Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: