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

Atto Pasting still applies too many styles

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Copy paste a chunk of text from any web page into an atto field. It should keep the structure, but none of the colors, fonts or weird spacing.

      Switch to HTML view - verify the markup looks reasonably nice and clean.

      Show
      Copy paste a chunk of text from any web page into an atto field. It should keep the structure, but none of the colors, fonts or weird spacing. Switch to HTML view - verify the markup looks reasonably nice and clean.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55012-master

      Description

      In MDL-50795 we had the option of stripping all styles on paste or just background colour. I think we made the wrong decision by choosing to only strip the background colour - all the other styles cause many problems when trying to copy paste text - even when copying text within the editor.

      To see the problem:
      Create a list with 2 links
      indent the second item

      select the entire list and copy/paste it. Verify you have 2 identical lists with 2 links in each and the second link indented.

      Actual result
      very strange broken looking list with many many style attributes in the HTML.

      This is not a rare problem - it comes up very frequently when copy/pasting text in atto and is very frustrating.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Ryan Wyllie
              Integrator:
              Dan Poltawski
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Barbara Ramiro, Bas Brands
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16