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

Auto cleanup Atto HTML

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.7
    • Text 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

      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.

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

            damyon Damyon Wiese
            damyon Damyon Wiese
            Andrew Lyons Andrew Lyons
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.