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

Atto should start new content in a paragraph tag by default.

XMLWordPrintable

    • MOODLE_27_STABLE
    • MDL-44063-master
    • Hide
      1. In ie9, ie11, firefox, chrome, safari, ios safari, android stock
      2. Open atto on a page with no text already entered in the editor (exmaple: new blog entry)
      3. focus on the editor and type some text
      4. Hit enter - the content should be split into 2 paragraphs (with some margin between them)
      5. convert the 2 paragraphs to a list
      6. hit enter twice on the second list item to break out of the list
      7. the content after the list should be in a paragraph
      8. hit enter again and the paragraph after the lsit should be split into 2 paragraphs

      Testing notes: To see the if the content is in a paragraph, right click and inspect it (do not rely on html view because there is a little magic there).
      In firefox it is possible to use the arrow keys or by tabbing to a text field - to position the cursor outside of the first paragraph, typing then insert text directly into the div. This is a firefox bug and we should not work around it IMO.

      Show
      In ie9, ie11, firefox, chrome, safari, ios safari, android stock Open atto on a page with no text already entered in the editor (exmaple: new blog entry) focus on the editor and type some text Hit enter - the content should be split into 2 paragraphs (with some margin between them) convert the 2 paragraphs to a list hit enter twice on the second list item to break out of the list the content after the list should be in a paragraph hit enter again and the paragraph after the lsit should be split into 2 paragraphs Testing notes: To see the if the content is in a paragraph, right click and inspect it (do not rely on html view because there is a little magic there). In firefox it is possible to use the arrow keys or by tabbing to a text field - to position the cursor outside of the first paragraph, typing then insert text directly into the div. This is a firefox bug and we should not work around it IMO.
    • 40
    • FRONTEND Sprint 10

      Currently, Atto does not insert anything in an empty text area, this works OK - but browsers will use divs by default, it would be better to make the default a paragraph (more semantic).

      We can do this easily by inserting <p></p> in init if there is no text and removing <p></p> on clean_html if it is the only thing in the div.

            damyon Damyon Wiese
            damyon Damyon Wiese
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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