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

atto produces invalid HTML when copy/paste list items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.10.1
    • Text 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>.

      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>.

            Unassigned Unassigned
            bwurst bwurst
            Simey Lameze Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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