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

Atto: toggle RTL/LTR multiple times without changing the text creates redundant <p> tags

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.8, 2.9
    • 2.9.6
    • HTML Editor (Atto)
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_29_STABLE

    Description

      This was discovered while testing the changes in MDL-46497. That patch improves the existing behaviour but there is still one small bug left to squash.

      The steps to reproduce the issue are:

      1. Enable RTL/LTR buttons as described in testing instructions
      2. Create a new course
      3. Paste "אני כותב בעברית And also in English וחוזר לכתוב בעברית" into the course summary
      4. Highlight the text and click the right-to-left button (you have to click show more buttons in atto)
      5. Toggle atto to raw text mode by clicking the "<>" button
      6. Toggle back to HTML mode by clicking the "<>" button
      7. Click the left-to-right button
      8. Toggle back to raw text mode by clicking "<>"
      9. You should see a redundant <p> tag was added
      10. You can keep adding more redundant <p> tags by toggling to raw text mode and back again, then clicking the left-to-right button. Each toggle and button combo will add more tags.
        • Note: When reproducing this issue you should only be clicking on the buttons. Don't change the cursor position or highlight the text or anything

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ryanwyllie Ryan Wyllie
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/16