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

Auto cleanup Atto HTML

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.7
    • HTML Editor (Atto)
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • MDL-43857-master
    • 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?
    • 40
    • 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

              damyon Damyon Wiese
              damyon Damyon Wiese
              Andrew Lyons Andrew Lyons
              Mark Nelson Mark Nelson
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/May/14