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

Disable click in links in MathJax

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.5
    • 4.0.0
    • Others
    • 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.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • 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

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22