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

ATTO Editor adding unwanted text sizing



    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1, 3.7.2, 3.7.3, 3.8, 3.8.1, 3.9.2
    • Fix Version/s: None
    • Component/s: HTML Editor (Atto)
    • Affected Branches:


      When adding either text or an image on the first line of the description field of an activity or resource, and then adding text on a second line which is centered, when deleting the image or text from the first line, the text is given a size of 0.9375rem and the text is now showing as left aligned, but the html shows this is centered and left aligned. In my example, I've used the URL resource, but have tested in activities and resources, all showing the same outcome.


      1. Create an activity or resource,
        2. Name activity or resource,
        3. Add an image/text to the description section,
        4. Press enter to go to new line of description, enter some text 'play',
        5. Highlight text and center text,
        6. Check 'display description on course page',
        7. Click 'Save and return to course',
        8. Edit activity or resource,
        9. Click to the left of the entered text 'play' (start of the word),
        10. Backspace until image/text is gone,
        Note: The centered text 'play' is now showing to the far left of the page and is now not centered and has added in text size of 0.9375rem.
        11. Check the html of the description; <p><span style="color: rgb(51, 102, 255); text-align: center; font-size: 0.9375rem;">Play</span><br></p>
        12. Click 'Save and return to course'.

      Replicated on : https://sandbox.moodledemo.net/

      Also replicate in our internal systems which are on 3.5, 3.,6, and 3.7


      Replicated on Classic, Boost and Snap themes.

      The clean theme does not add the text sizing.



        1. App view of text showing unwanted text resizing.png
          189 kB
          Helen Foster
        2. image-2020-09-30-13-50-07-813.png
          11 kB
          Tim Bahula
        3. image-2020-09-30-17-22-37-181.png
          9 kB
          Louisa van der Linden
        4. Moodle sandbox demo.mp4
          9.31 MB
          paul vella

          Issue Links



              Unassigned Unassigned
              pvella paul vella
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              12 Vote for this issue
              13 Start watching this issue