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

Auto cleanup Atto HTML

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide

      Try copy/pasting the text from the attached samples into a text editor. Verify, the content shows, and looks OK(tm), view the source and see it is mostly not tag soup.

      Note: There will be e.g. inline styles in the source - but they should be for mostly valid CSS attributes - not rubbish like "ms-far-east-asian-font-family = Arial".

      Now - Use some different word processors, and cut and paste into Atto. See what you think?

      Show
      Try copy/pasting the text from the attached samples into a text editor. Verify, the content shows, and looks OK(tm), view the source and see it is mostly not tag soup. Note: There will be e.g. inline styles in the source - but they should be for mostly valid CSS attributes - not rubbish like "ms-far-east-asian-font-family = Arial". Now - Use some different word processors, and cut and paste into Atto. See what you think?
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-43857-master
    • Story Points:
      40
    • Sprint:
      FRONTEND Sprint 9

      Description

      Especially from paste and paste from word functions.

      I have an experimental branch for this somewhere based on regexes.

      The hard thing here is getting sufficient testing data - access to several versions of word would help.

        Attachments

        1. googledocsbloat.txt
          3 kB
        2. libreofficebloat.txt
          2 kB
        3. word2003bloat.txt
          37 kB
        4. word2013bloat.txt
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                damyon Damyon Wiese
                Reporter:
                damyon Damyon Wiese
                Peer reviewer:
                Andrew Nicols
                Tester:
                Mark Nelson
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14