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

[atto_equation] Repeating insertion from predefined buttons does not place them where the cursor is set

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Check the replication steps in the Description to familiarise yourself with the problem, and then attempt the test.
      1. Open up an Atto text editor (e.g. on a course forum)
      2. Click on the equation editor
      3. Go to 'Advanced' tab
      4. Click on the 'integral button'
      5. Put the cursor just before the 'a' character - check the next symbol will be inserted before the 'a'
      6. Put the cursor just after the 'a' character - check the next symbol will be inserted after the 'a'
      7. Delete the 'a' character - check the next symbol will be inserted within the brackets.
      Show
      Check the replication steps in the Description to familiarise yourself with the problem, and then attempt the test. Open up an Atto text editor (e.g. on a course forum) Click on the equation editor Go to 'Advanced' tab Click on the 'integral button' Put the cursor just before the 'a' character - check the next symbol will be inserted before the 'a' Put the cursor just after the 'a' character - check the next symbol will be inserted after the 'a' Delete the 'a' character - check the next symbol will be inserted within the brackets.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-55461_atto_equation

      Description

      Hi together,

      as working with the equation editor, we found the above mentioned behavior.

      Pre-Conditions
      1. User profile set to Atto HTML Editor.
      2. MathJax is enabled at site level (Site administrator > Plugins > Filters > Manage Filters)

      Steps to Replicate
      1. Login as User
      2. Access Course
      3. Open Atto text editor
      4. Click on the equation editor button.
      5. Go to tab Advanced
      6. Click on the integral button

      => See that the integral with Tex-notation is inserted into the editor
      7. Go to the upper limit of the integral (a), click after it and delete the letter
      8. Go to the tab Greek Symbols and click on the alpha button (α).

      => See that the Tex-notation for alpha is placed after the upper limit braces

      9. Go to the lower limit brace click after b and delete the letter b.
      10. Click on the button b (β).

      => See that this time the Tex-notation for beta is inserted after the whole integral.

      Expected behavior
      The further elements of this editor should be placed where the cursor is within the Tex-notation.

      Cheers, Kathrin

        Attachments

        1. step1.png
          36 kB
          Kathrin Osswald
        2. step2.png
          43 kB
          Kathrin Osswald
        3. step3.png
          50 kB
          Kathrin Osswald
        4. step4.png
          46 kB
          Kathrin Osswald

          Activity

            People

            Assignee:
            davosmith Davo Smith
            Reporter:
            kosswa Kathrin Osswald
            Peer reviewer:
            Adrian Greeve
            Integrator:
            Dan Poltawski
            Tester:
            Mark Nelson
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/May/17