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

atto produces invalid HTML when copy/paste list items

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.10.1
    • None
    • HTML Editor (Atto)
    • MOODLE_310_STABLE
    • MDL-70675-master_atto_fix_li_without_ul
    • Hide

      Open an atto session and open any HTML with some list in parallel. I used https://www.w3schools.com/html/html_lists.asp

      Then copy lines of text to the editor.

      When you select the whole <ul> list, my change does nothing.
      When you select a whole <ol> list, my change also does nothing.
      When you select just some lines from the middle of the list, now they are surrounded by <ul>.

      Show
      Open an atto session and open any HTML with some list in parallel. I used https://www.w3schools.com/html/html_lists.asp Then copy lines of text to the editor. When you select the whole <ul> list, my change does nothing. When you select a whole <ol> list, my change also does nothing. When you select just some lines from the middle of the list, now they are surrounded by <ul>.

    Description

      When you select some list items out of an unordered list anywhere (e.g. in some moodle course content) and paste it into an atto editor session, the content is inserted with <li> tags but without any <ul> tags.

      Saving this breaks the whole course page.

      Atto should ensure that <li> tags are always surrounded by <ul> or <ol>.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bwurst bwurst
              Simey Lameze Simey Lameze
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m