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

Atto Pasting still applies too many styles

    XMLWordPrintable

Details

    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55012-master
    • 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.

    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

              damyon Damyon Wiese
              damyon Damyon Wiese
              Ryan Wyllie Ryan Wyllie
              Dan Poltawski Dan Poltawski
              Adrian Greeve Adrian Greeve
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16