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

ATTO Editor adding unwanted <span> tags in Boost & Snap theme

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.5.3, 3.6.3
    • Fix Version/s: None
    • Component/s: HTML Editor (Atto), Themes
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      The font size and display of text in the ATTO editor have been mysteriously overwritten in Google Chrome browser in the Boost and Snap themes, doesn't seem to affect Clean or More themes.
      The editor decides to wrap sections of text with: <span style="font-size: 1rem;"> effectively locking the text to this size and not obeying other document styles.

      1. Using the ATTO editor, create two paragraphs of text
      2. Position the cursor at the start of the second paragraph
      3. Press backspace (ie collapse the two paragraphs to one)
      4. Toggle to code view. Note the addition of the <span> tag around what was the second paragraph (see sample code lower)
      5. Toggle back to design view
      6. Highlight all the text
      7. Set style to Heading (large)
      8. Note that the text inside the <span> tag does not honour the new text size

      SAMPLE CODE:
      <p>Paragraph 1<span style="font-size: 1rem;">Paragraph 2</span></p>

      This was replicated on https://demo.moodle.net

      You can see it in action here: https://www.youtube.com/watch?v=gKOB7foZA1w

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pvella paul vella
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: